]> git.baikalelectronics.ru Git - kernel.git/commit
iio: light: tsl2563: use correct event code
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 20 Jun 2017 16:46:37 +0000 (01:46 +0900)
committerJonathan Cameron <jic23@kernel.org>
Sat, 24 Jun 2017 19:42:49 +0000 (20:42 +0100)
commit740848600fda233c973fb738bf0bd1e599c54f6d
tree44b58ab7891bbb8d7549b57bb9f76acca04915b2
parent9e5f96e5ce55869ecb96f5ab5970aed3080c8ae8
iio: light: tsl2563: use correct event code

The TSL2563 driver provides three iio channels, two of which are raw ADC
channels (channel 0 and channel 1) in the device and the remaining one
is calculated by the two.  The ADC channel 0 only supports programmable
interrupt with threshold settings and this driver supports the event but
the generated event code does not contain the corresponding iio channel
type.

This is going to change userspace ABI.  Hopefully fixing this to be
what it should always have been won't break any userspace code.

Cc: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/tsl2563.c