iio: mma8452: Use correct type for return variable in IRQ handler
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 1 Nov 2021 10:27:34 +0000 (11:27 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 17 Nov 2021 17:51:39 +0000 (17:51 +0000)
commiteb0469894ba788ffdc81097b7dea822432e479d9
tree7d5aa9655e5de838d209490614c6e4865855744a
parent6a9a90364914d41a1a7456dd964af8dc2ab3ed4b
iio: mma8452: Use correct type for return variable in IRQ handler

The IRQ handler's return type is irqreturn_t. The mma8452 uses a variable
to store the return value, but the variable is of type int. Change this to
irqreturn_t. This makes it easier to verify that the code is correct.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20211101102734.32291-1-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/mma8452.c