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: Amit Kucheria <amit.kucheria@verdurent.com>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Cc: linux-omap@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Amit Kucheria
2009-11-09 15:14:28 +02:00
committed by Greg Kroah-Hartman
parent 51bf00aef0
commit ee1f1fa407
4 changed files with 793 additions and 0 deletions
+11
View File
@@ -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.
+1
View File
@@ -3,3 +3,4 @@
#
obj-$(CONFIG_TSL2561) += tsl2561.o
obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
#ifndef __LINUX_TSL2563_H
#define __LINUX_TSL2563_H
struct tsl2563_platform_data {
int cover_comp_gain;
};
#endif /* __LINUX_TSL2563_H */