Re: [PATCH] iio: adc: ti-ads1119: Replace IRQF_ONESHOT with IRQF_NO_THREAD

From: Andy Shevchenko

Date: Mon Mar 02 2026 - 11:51:17 EST


On Tue, Mar 03, 2026 at 12:00:04AM +0800, Felix Gu wrote:
> 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.
>
> Since there is no threaded handler, replace devm_request_threaded_irq
> with devm_request_irq, and replace IRQF_ONESHOT with IRQF_NO_THREAD.

...

> if (ret)
> return dev_err_probe(dev, ret,
> "Failed to allocate irq\n");

Also consider dropping this duplicate message as the callee does it already.

--
With Best Regards,
Andy Shevchenko