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]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux