Skip to content

Commit dedeba4

Browse files
mitagregkh
authored andcommitted
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>
1 parent dfb5cc9 commit dedeba4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iio/light/tsl2563.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static irqreturn_t tsl2563_event_handler(int irq, void *private)
626626
struct tsl2563_chip *chip = iio_priv(dev_info);
627627

628628
iio_push_event(dev_info,
629-
IIO_UNMOD_EVENT_CODE(IIO_LIGHT,
629+
IIO_UNMOD_EVENT_CODE(IIO_INTENSITY,
630630
0,
631631
IIO_EV_TYPE_THRESH,
632632
IIO_EV_DIR_EITHER),

0 commit comments

Comments
 (0)