]> git.baikalelectronics.ru Git - kernel.git/commit
iio: light: hid-sensor-als: Add duplicate IIO_LIGHT channel
authorKweh, Hock Leong <hock.leong.kweh@intel.com>
Thu, 15 Dec 2016 21:48:21 +0000 (13:48 -0800)
committerJonathan Cameron <jic23@kernel.org>
Fri, 30 Dec 2016 17:06:34 +0000 (17:06 +0000)
commitbb065973ebc6ccacd12f4fac7ce671356dff60e9
treec6a22bb20872050e98b9c60f0d46d1a3dd0d27c4
parent6a17916eedb63d81944f5a2bfd6debc53c3c3d33
iio: light: hid-sensor-als: Add duplicate IIO_LIGHT channel

There is one light sensor type defined in the sensor hub specification,
which has one Illuminance field. It doesn't distinguish between ambient
light sensor or color sensor. Currently it is presented as IIO_INTENSITY
channel. There are some user spaces specifically looking for IIO_LIGHT
channel.
To satisfy such user spaces this change also add a duplicate IIO_LIGHT
channel. The units of measurement of Illuminance field is Lux, so it is
still compatible to IIO ABI.

Signed-off-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/hid-sensor-als.c