OSDN Git Service

iio: light: tsl2563: use correct event code
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 20 Jun 2017 16:46:37 +0000 (01:46 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2017 20:43:20 +0000 (13:43 -0700)
commitbbae08213e6e9811a2d3ece7ba95b1ac0e21f47c
treeab806b1568f2f30fc712be9b0bbf06e2b47df4ca
parent1ca3869234d300b9a0543cf55dccce42c2fc77c1
iio: light: tsl2563: use correct event code

commit a3507e48d3f99a93a3056a34a5365f310434570f upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/tsl2563.c