staging: iio: tsl2x7x: don't return error in IRQ handler
authorBrian Masney <masneyb@onstation.org>
Sat, 21 Apr 2018 00:41:43 +0000 (20:41 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Apr 2018 15:17:59 +0000 (16:17 +0100)
commit3605dfb8510c52b3b2b5e0390cba29d54847a7b7
tree6b25c6ddd8cb19a953c40d2398b2061459b8b214
parent2f58efa96373782a9c26203479c28a59976edfc5
staging: iio: tsl2x7x: don't return error in IRQ handler

tsl2x7x_event_handler() could return an error and this could cause the
interrupt to remain masked. We shouldn't return an error in the
interrupt handler so this patch always returns IRQ_HANDLED. An error
will be logged if one occurs.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c