]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7395eff6ce94cfee3d1cf7b1b14c923fca7e0381
treebbea88a355fc165bb903ddf139a459104edc35dd
parentd2de64dd2b413e687e15a909e92c878f4e911fa0
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