diff options
author | Oleksandr Kravchenko <o.v.kravchenko@globallogic.com> | 2013-07-22 14:11:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-08-03 18:40:37 +0100 |
commit | 03eff7b60dc3e5d2539a5f9685a9fb9a530e01e8 (patch) | |
tree | 314faee3cfbc7d3ea74a038de224ee7216b82eb5 /drivers/iio/light/Kconfig | |
parent | e6faed19c20571a413e8ddeab4d4ea1825b8e633 (diff) | |
download | linux-03eff7b60dc3e5d2539a5f9685a9fb9a530e01e8.tar.gz linux-03eff7b60dc3e5d2539a5f9685a9fb9a530e01e8.tar.bz2 linux-03eff7b60dc3e5d2539a5f9685a9fb9a530e01e8.zip |
iio: add APDS9300 ambilent light sensor driver
This patch adds IIO driver for APDS9300 ambient light sensor (ALS).
http://www.avagotech.com/docs/AV02-1077EN
The driver allows to read raw data from ADC registers or calculate
lux value. It also can handle threshold interrupt.
Signed-off-by: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light/Kconfig')
-rw-r--r-- | drivers/iio/light/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig index 3bd29f810e6d..bf9fa0d7aff9 100644 --- a/drivers/iio/light/Kconfig +++ b/drivers/iio/light/Kconfig @@ -17,6 +17,16 @@ config ADJD_S311 This driver can also be built as a module. If so, the module will be called adjd_s311. +config APDS9300 + tristate "APDS9300 ambient light sensor" + depends on I2C + help + Say Y here if you want to build a driver for the Avago APDS9300 + ambient light sensor. + + To compile this driver as a module, choose M here: the + module will be called apds9300. + config HID_SENSOR_ALS depends on HID_SENSOR_HUB select IIO_BUFFER |