summaryrefslogtreecommitdiff
path: root/drivers/iio/light/ltr501.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2021-10-24 19:12:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-14 10:03:50 +0100
commite4ec12c2050dd5556d909c04daaf09ca82d00c9c (patch)
treef5727c46ceeb9801ac6de00d0e1e5384747300f6 /drivers/iio/light/ltr501.c
parent2a11b9c22be815a54c5ec380a05a4adfbf61ce3e (diff)
iio: stk3310: Don't return error code in interrupt handler
commit 8e1eeca5afa7ba84d885987165dbdc5decf15413 upstream. Interrupt handlers must return one of the irqreturn_t values. Returning a error code is not supported. The stk3310 event interrupt handler returns an error code when reading the flags register fails. Fix the implementation to always return an irqreturn_t value. Fixes: 3dd477acbdd1 ("iio: light: Add threshold interrupt support for STK3310") Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Link: https://lore.kernel.org/r/20211024171251.22896-3-lars@metafoo.de Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/light/ltr501.c')
0 files changed, 0 insertions, 0 deletions