aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/mma8452.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2021-11-01 11:27:34 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-11-17 17:51:39 +0000
commiteb0469894ba788ffdc81097b7dea822432e479d9 (patch)
tree7d5aa9655e5de838d209490614c6e4865855744a /drivers/iio/accel/mma8452.c
parentiio: lmp91000: Remove no-op trigger ops (diff)
downloadlinux-dev-eb0469894ba788ffdc81097b7dea822432e479d9.tar.xz
linux-dev-eb0469894ba788ffdc81097b7dea822432e479d9.zip
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>
Diffstat (limited to 'drivers/iio/accel/mma8452.c')
-rw-r--r--drivers/iio/accel/mma8452.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c
index 715b8138fb71..4ac4c06e9707 100644
--- a/drivers/iio/accel/mma8452.c
+++ b/drivers/iio/accel/mma8452.c
@@ -1053,7 +1053,7 @@ static irqreturn_t mma8452_interrupt(int irq, void *p)
{
struct iio_dev *indio_dev = p;
struct mma8452_data *data = iio_priv(indio_dev);
- int ret = IRQ_NONE;
+ irqreturn_t ret = IRQ_NONE;
int src;
src = i2c_smbus_read_byte_data(data->client, MMA8452_INT_SRC);