iio: light: Add support for Capella CM3323 color sensor
authorDaniel Baluta <daniel.baluta@intel.com>
Sat, 14 Mar 2015 19:11:41 +0000 (21:11 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 15 Mar 2015 11:43:02 +0000 (11:43 +0000)
commit8b0544263761adbc7308f6910cdcc0d601782cb1
treedde3cd9caffcf8b2671c356ddfda172ecde9c9da
parent40dbbfb5e49c9317a24111bb71151090e8ea95e8
iio: light: Add support for Capella CM3323 color sensor

Minimal implementation providing raw light intensity
and integration time attribute.

Userspace applications can use GREEN channel for raw
illuminance readings following this table:

Integration Time | G Sensitivity
================================
40 ms            | 0.18
80 ms            | 0.09
160 ms           | 0.045
320 ms           | 0.0225
640 ms           | 0.01125
1280 ms          | 0.005625

Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/cm3323.c [new file with mode: 0644]