hwmon: (ntc_thermistor) Switch to generic firmware props
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 6 Dec 2021 02:04:22 +0000 (03:04 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 26 Dec 2021 23:02:06 +0000 (15:02 -0800)
commit70760e80db06247b0c7b1933a9be81b5c22fc25e
treebbea88a355fc165bb903ddf139a459104edc35dd
parente0149eebe47b9fe50cf85f23bcaeed81d7356c99
hwmon: (ntc_thermistor) Switch to generic firmware props

This switches to retrieveing the configuration of the NTC
from generic firmware properties so that we get neutral from
device tree: now ACPI or, more importantly, software nodes
can be used to spawn NTC devices provided they have the
required properties.

This was inspired by the similar changes made to the IIO
drivers.

This was tested on the Ux500 HREF with the NTC devices
probing from device tree just as fine after this as before.

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/20211206020423.62402-2-linus.walleij@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ntc_thermistor.c