]> 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)
commit5b088a49b8bdcf611668c2eca6ed11f49af48839
treec6a22bb20872050e98b9c60f0d46d1a3dd0d27c4
parentcb66cdea1b7abca3871e48d0ce394eda09595910
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