3 May 2012 13:40
Re: [PATCH v2 2/4] iio: add LM3533 ambient light sensor driver
Jonathan Cameron <jic23 <at> cam.ac.uk>
2012-05-03 11:40:10 GMT
2012-05-03 11:40:10 GMT
On 5/3/2012 11:26 AM, Johan Hovold wrote: > 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 brightness target levels. > > 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. Code is fine. Pretty much all my comments are to do with the interface. > > Signed-off-by: Johan Hovold<jhovold <at> gmail.com> > --- > > v2: > - reimplement using iio > - add sysfs-ABI documentation > > > .../Documentation/sysfs-bus-iio-light-lm3533-als | 62 ++ > drivers/staging/iio/light/Kconfig | 16 + > drivers/staging/iio/light/Makefile | 1 + > drivers/staging/iio/light/lm3533-als.c | 617 ++++++++++++++++++++ > 4 files changed, 696 insertions(+), 0 deletions(-) > create mode 100644 drivers/staging/iio/Documentation/sysfs-bus-iio-light-lm3533-als > create mode 100644 drivers/staging/iio/light/lm3533-als.c > > diff --git a/drivers/staging/iio/Documentation/sysfs-bus-iio-light-lm3533-als b/drivers/staging/iio/Documentation/sysfs-bus-iio-light-lm3533-als(Continue reading)
RSS Feed