Commit 6b20464a authored by Michał Mirosław's avatar Michał Mirosław Committed by Sebastian Reichel
Browse files

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: e67d4dfc ("power: supply: Add HWMON compatibility layer")
Signed-off-by: default avatarMichał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 9ba2353b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ static int power_supply_hwmon_read_string(struct device *dev,
					  u32 attr, int channel,
					  const char **str)
{
	*str = channel ? "temp" : "temp ambient";
	*str = channel ? "temp ambient" : "temp";
	return 0;
}