power: supply: core: fix HWMON temperature labels

tempX_label files are swapped compared to what
power_supply_hwmon_temp_to_property() uses. Make them match.

Cc: stable@vger.kernel.org
Fixes: e67d4dfc9f ("power: supply: Add HWMON compatibility layer")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Michał Mirosław
2020-04-03 22:20:33 +02:00
committed by Sebastian Reichel
parent 9ba2353b2c
commit 6b20464ad9

View File

@@ -144,7 +144,7 @@ static int power_supply_hwmon_read_string(struct device *dev,
u32 attr, int channel, u32 attr, int channel,
const char **str) const char **str)
{ {
*str = channel ? "temp" : "temp ambient"; *str = channel ? "temp ambient" : "temp";
return 0; return 0;
} }