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)
commite83a2e443468664af5421ef5a3499980a4493248
treed5b8fac1e36d733464a99c4b9a3c1539910510c3
parent97ed79f4931964069fc3be7ae5122c3026273f9e
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