iio: Add tsl4531 ambient light sensor driver
authorPeter Meerwald <pmeerw@pmeerw.net>
Sun, 8 Sep 2013 15:20:00 +0000 (16:20 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Sep 2013 20:17:15 +0000 (21:17 +0100)
commitaab9ba7eb2633927d0010f00c3bc7960efcd3c23
tree5024db22f7b847cbf5f7454b29bf112c76fee07a
parentcaeac374224a8fc180795499fbef04ee7e1ba597
iio: Add tsl4531 ambient light sensor driver

driver for the TSL4531 family of 16-bit I2C ambient light
sensors; information is here:
http://www.ams.com/eng/Products/Light-Sensors/Ambient-Light-Sensor-ALS/TSL45315

the chip offers simple lux output

v3 (thanks Lars-Peter Clausen):
* add mutex to when updating integration time
* fix chip ID checking
* code cleanups
v2:
* rename to tsl4351
* use INT_TIME

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/tsl4531.c [new file with mode: 0644]