Commit ee1f1fa4 authored by Amit Kucheria's avatar Amit Kucheria Committed by Greg Kroah-Hartman

Staging: iio: tsl2563 ambient light sensor driver

Add driver support for the tsl2563 TAOS ambient light sensor. After looking at
discussions on LKML, the driver was modified from a 'hwmon' driver to an 'iio'
driver. The sysfs interfaces have been tested on an RX51 (N900) to see if it
responds to changing light conditions.

The only real reason for submitting this to staging is that it is dependent on
the IIO subsystem.
Signed-off-by: default avatarAmit Kucheria <amit.kucheria@verdurent.com>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Cc: linux-omap@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 51bf00ae
......@@ -11,3 +11,14 @@ config TSL2561
convertor. This chip has two light sensors. One is broadband
including infrared whilst the other measures only infrared.
Provides direct access via sysfs.
config SENSORS_TSL2563
tristate "TAOS TSL2563 ambient light sensor"
depends on I2C
help
If you say yes here you get support for the Taos TSL2563
ambient light sensor (found in N900).
This driver can also be built as a module. If so, the module
will be called tsl2563.
......@@ -3,3 +3,4 @@
#
obj-$(CONFIG_TSL2561) += tsl2561.o
obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o
This diff is collapsed.
#ifndef __LINUX_TSL2563_H
#define __LINUX_TSL2563_H
struct tsl2563_platform_data {
int cover_comp_gain;
};
#endif /* __LINUX_TSL2563_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment