]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad_sigma_delta: fix irq_flags on irq request
authorNuno Sa <nuno.sa@analog.com>
Tue, 6 Aug 2024 15:40:49 +0000 (17:40 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 6 Aug 2024 15:57:24 +0000 (16:57 +0100)
commite81bb580ec08d7503c14c92157d810d306290003
tree08d91a19d0656eca444249a13e38237338614079
parentde80af5c2ffd9c3f02792f6979296cb6f74e82e5
iio: adc: ad_sigma_delta: fix irq_flags on irq request

With commit 7b0c9f8fa3d2 ("iio: adc: ad_sigma_delta: Add optional irq
selection"), we can get the irq line from struct ad_sigma_delta_info
instead of the spi device. However, in devm_ad_sd_probe_trigger(), when
getting the irq_flags with irq_get_trigger_type() we are still using
the spi device irq instead of the one used for devm_request_irq().

Fixes: 7b0c9f8fa3d2 ("iio: adc: ad_sigma_delta: Add optional irq selection")
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240806-dev-fix-ad-sigma-delta-v1-1-aa25b173c063@analog.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad_sigma_delta.c