]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: add LM3533 ambient-light-sensor driver
authorJohan Hovold <jhovold@gmail.com>
Mon, 21 May 2012 12:18:06 +0000 (14:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 04:12:29 +0000 (21:12 -0700)
commit9c8ea1b29bc9c9bbd922a652d1b91ddceeb180c6
tree3f975a88fd580bd3adb563e12344008de5544f1a
parent2979460d7aba1dac3452edcacd7b8c4cfcf06067
iio: add LM3533 ambient-light-sensor driver

Add sub-driver for the ambient-light-sensor interface on National
Semiconductor / TI LM3533 lighting power chips.

The sensor interface can be used to control the LEDs and backlights of
the chip through defining five light zones and three sets of
corresponding output-current values.

The driver provides raw and mean adc readings along with the current
light zone through sysfs. A threshold event can be generated on zone
changes. The ALS-control output values can be set per zone for the three
current output channels.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-iio-light-lm3533-als [new file with mode: 0644]
drivers/iio/Kconfig
drivers/iio/Makefile
drivers/iio/light/Kconfig [new file with mode: 0644]
drivers/iio/light/Makefile [new file with mode: 0644]
drivers/iio/light/lm3533-als.c [new file with mode: 0644]