You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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:
committed by
Greg Kroah-Hartman
parent
51bf00aef0
commit
ee1f1fa407
@@ -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
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
#ifndef __LINUX_TSL2563_H
|
||||
#define __LINUX_TSL2563_H
|
||||
|
||||
struct tsl2563_platform_data {
|
||||
int cover_comp_gain;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_TSL2563_H */
|
||||
|
||||
Reference in New Issue
Block a user