]> git.karo-electronics.de Git - linux-beck.git/commit
iio: Add Lite-On ltr501 ambient light / proximity sensor driver
authorPeter Meerwald <pmeerw@pmeerw.net>
Wed, 1 Oct 2014 21:01:00 +0000 (22:01 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 12 Jan 2014 18:15:40 +0000 (18:15 +0000)
commit2690be9051236898fb3f5da6d86c1202ec3f1aed
treed6fcbcab4c659433c18c67c51ade250ee2f2d8f9
parent1a5b7d41f8f6ec087372bef348c46f5844a472b6
iio: Add Lite-On ltr501 ambient light / proximity sensor driver

combined ambient light (two channels) and proximity sensor with I2C
interface; the ALS channels are visible+IR and IR

datasheet is here
http://optoelectronics.liteon.com/upload/download/DS86-2012-0006/P_100_LTR-501ALS-01_PrelimDS_ver1.1.pdf

v3:
* fix use of sizeof in _read_als()
v2: (thanks to Lars-Peter Clausen)
* cannot use devm_iio_device_register() due to cleanup order in _remove()
* mutex around data wait/read
* turn info message in _probe() into check for part number
* change copyright year to 2014

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/ltr501.c [new file with mode: 0644]