Thread (13 messages) 13 messages, 5 authors, 2021-05-03

Re: [PATCH v4 4/6] iio: accel: fxls8962af: add interrupt support

From: Sean Nyekjaer <hidden>
Date: 2021-05-03 11:19:11
Also in: linux-iio

On 30/04/2021 11.02, Andy Shevchenko wrote:
quoted
+#include <linux/of_irq.h>
See below.

...
quoted
+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, &reg);
+       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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help