On 30/04/2021 11.02, Andy Shevchenko wrote: >> +#include <linux/of_irq.h> > See below. > > ... > >> +static irqreturn_t fxls8962af_interrupt(int irq, void *p) >> +{ >> + struct iio_dev *indio_dev = p; >> + struct fxls8962af_data *data = iio_priv(indio_dev); >> + unsigned int reg; >> + int ret; >> + >> + ret = regmap_read(data->regmap, FXLS8962AF_INT_STATUS, ®); >> + if (ret < 0) >> + return IRQ_NONE; >> + >> + return IRQ_NONE; > And how is it handled? > Interrupt from the accelerometer is not enabled in this patch. So there is nothing to handle :) Interrupts are enabled and handled in: "[PATCH v4 5/6] iio: accel: fxls8962af: add hw buffered sampling" /Sean