Re: [PATCH v5 3/5] iio: proximity: rfd77402: Add interrupt handling support

From: Andy Shevchenko

Date: Thu Jan 15 2026 - 03:42:15 EST


On Thu, Jan 15, 2026 at 01:57:39PM +0530, Shrikant Raskar via B4 Relay wrote:

> Add interrupt handling support to enable event-driven data acquisition
> instead of continuous polling. This improves responsiveness, reduces
> CPU overhead, and supports low-power operation by allowing the system
> to remain idle until an interrupt occurs.

...

Also

+ bits.h // although it's preexisting problem, but you add a new user of it

> +#include <linux/completion.h>
> #include <linux/delay.h>

+ dev_printk.h
+ errno.h

> #include <linux/i2c.h>
> +#include <linux/interrupt.h>
> #include <linux/iopoll.h>

+ jiffies.h

> #include <linux/module.h>

+ types.h

All on the same grounds as above,

...

> mutex_init(&data->lock);

Conversion to devm_mutext_init() change should be before this patch.

...

> + i2c_set_clientdata(client, indio_dev);

Is it used?

--
With Best Regards,
Andy Shevchenko