]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6df5e3aa1d188058f9f576f07e4b6c837cb25a86
tree7d5aa9655e5de838d209490614c6e4865855744a
parentfb5462344bd69927754085dd234e9267f6e8e425
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