]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: core: tabularize HWMON temperature labels
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Fri, 1 May 2020 15:11:18 +0000 (17:11 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 1 May 2020 16:58:42 +0000 (18:58 +0200)
commit580cefbbeae18554f0561c8c023f7ce5f12e67f0
treed5b8fac1e36d733464a99c4b9a3c1539910510c3
parentad281650a0d6a88c9376d2e63da1a387ecbb5daf
power: supply: core: tabularize HWMON temperature labels

Rework power_supply_hwmon_read_string() to check it's parameters.
This allows to extend it later with labels for other types of
measurements.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_hwmon.c