hwmon: (ntc_thermistor) Drop read_uv() depend on OF and IIO
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Nov 2021 02:08:40 +0000 (03:08 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 26 Dec 2021 23:02:05 +0000 (15:02 -0800)
commit209218efd6ac8bebfe85fd2bc3ad64e5c3bad0a8
tree61ecd74d132b12daf7e103af4fc8ce8f332f8367
parent76f240ff9523673106385120bc9af15ada9ca2f8
hwmon: (ntc_thermistor) Drop read_uv() depend on OF and IIO

The only possible assignment of a function to get a voltage to
convert to a resistance is to use the internal function
ntc_adc_iio_read() which is only available when using IIO
and OF.

Bite the bullet and mandate OF and IIO, drop the read_uv()
callback abstraction and some ifdefs.

As no board is using the platform data, all users are using
OF and IIO anyway.

Cc: Peter Rosin <peda@axentia.se>
Cc: Chris Lesiak <chris.lesiak@licor.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20211125020841.3616359-4-linus.walleij@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/Kconfig
drivers/hwmon/ntc_thermistor.c