]> asedeno.scripts.mit.edu Git - linux.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)
commit578f8d77089290a7c67989fe48ad9304f8b88e8f
treec6a22bb20872050e98b9c60f0d46d1a3dd0d27c4
parent7f0d874036f07ceb394979f83a6411baed513aa9
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