]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iio: Add tcs3472 color light sensor driver
authorPeter Meerwald <pmeerw@pmeerw.net>
Sat, 14 Sep 2013 19:38:00 +0000 (20:38 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Sep 2013 20:44:29 +0000 (21:44 +0100)
commiteb869ade30a645dd2fadd89453615585f235794e
tree358bc4bc506b09cb505815e2cf53e51cb03b3e3a
parentea01f2c18a22a2a8385909d64662afc92da6b13f
iio: Add tcs3472 color light sensor driver

chip has four 16-bit channels for red, green, blue, clear color
intensity; driver supports the TCS3x7x family of devices and was
tested with a TCS34725 chip; further information here:
http://www.ams.com/eng/Products/Light-Sensors/Color-Sensor/TCS34725

v2 (thanks to Jonathan Cameron):
* drop dynamic buffer allocation, buffer is in tcs3472_data
* limit sysfs output to PAGE_SIZE
* check val2 == 0 when writing CALIBSCALE

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Jon Brenner <jon.brenner@ams.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/tcs3472.c [new file with mode: 0644]