iio: adc: ab8500-gpadc: Support non-hw-conversion
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 18 Dec 2020 22:20:13 +0000 (23:20 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 9 Jan 2021 21:52:46 +0000 (21:52 +0000)
commitcef49e5ea1171c366e0df6d919292e585db3de55
tree44739b4dd1baa03c496427e4a17a6a383ed8450d
parent138daca30ee9d9c0abc6a10f437dd38746c716e9
iio: adc: ab8500-gpadc: Support non-hw-conversion

The hardware conversion mode only exists in the AB8500
version of the chip, as it is lacking in the AB8505 it
will not be in the device tree and we should just not
even try to obtain it.

The driver already contains code to avoid using a
non-existing hardware conversion IRQ at conversion time.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20201218222013.383704-1-linus.walleij@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ab8500-gpadc.c