]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD
authorFelix Gu <ustc.gu@gmail.com>
Mon, 2 Mar 2026 16:00:04 +0000 (00:00 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 2 Mar 2026 19:58:23 +0000 (19:58 +0000)
commit36f6d4db3c5cb0f58fb02b1f54f9e86522d2f918
tree204cfecb375b8a8af9e06dad2d625ea6a777fc9b
parent773ef9f95385bae52dcb7fd129fefba3a71a04db
iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD

As there is no threaded handler, replace devm_request_threaded_irq()
with devm_request_irq(), and as the handler calls iio_trigger_poll()
which may not be called from a threaded handler replace IRQF_ONESHOT
with IRQF_NO_THREAD.

Since commit aef30c8d569c ("genirq: Warn about using IRQF_ONESHOT
without a threaded handler"), the IRQ core checks IRQF_ONESHOT flag
in IRQ request and gives a warning if there is no threaded handler.

Fixes: a9306887eba4 ("iio: adc: ti-ads1119: Add driver")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads1119.c