iio: exynos-adc: request second interupt only when touchscreen mode is used
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 9 Oct 2023 10:14:12 +0000 (12:14 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 14 Oct 2023 16:47:20 +0000 (17:47 +0100)
commit865b080e3229102f160889328ce2e8e97aa65ea0
tree453c10eb8e48fa18c77dfa4250cc920a010af585
parente2bd8c28b9bd835077eb65715d416d667694a80d
iio: exynos-adc: request second interupt only when touchscreen mode is used

Second interrupt is needed only when touchscreen mode is used, so don't
request it unconditionally. This removes the following annoying warning
during boot:

exynos-adc 14d10000.adc: error -ENXIO: IRQ index 1 not found

Fixes: 2bb8ad9b44c5 ("iio: exynos-adc: add experimental touchscreen support")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20231009101412.916922-1-m.szyprowski@samsung.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/exynos_adc.c