[PATCH] iio: hid-sensors: trigger: use no_action for non-interrupt trigger

From: David Lechner

Date: Sun Mar 01 2026 - 17:53:48 EST


Use the no_action special function to indicate that we aren't actually
using the interrupt for the trigger registered in hid-sensor-trigger.c.

Due to recent changes in the irq subsystem, we are now getting a warning
about a threaded interrupt being registered with only a handler for the
top half.

Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>
---
drivers/iio/common/hid-sensors/hid-sensor-trigger.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
index 5540e2d28f4a..11660adb644a 100644
--- a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
+++ b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
@@ -239,8 +239,12 @@ int hid_sensor_setup_trigger(struct iio_dev *indio_dev, const char *name,
else
fifo_attrs = NULL;

+ /*
+ * There is no interrupt for the trigger. We are just using this to have
+ * a trigger automatically attached to the buffer.
+ */
ret = iio_triggered_buffer_setup_ext(indio_dev,
- &iio_pollfunc_store_time, NULL,
+ NULL, no_action,
IIO_BUFFER_DIRECTION_IN,
NULL, fifo_attrs);
if (ret) {
--
2.43.0