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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, &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



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux