power: supply: core: hide unused HWMON labels
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Fri, 3 Apr 2020 20:20:34 +0000 (22:20 +0200)
committerSebastian Reichel <sre@kernel.org>
Fri, 1 May 2020 13:43:04 +0000 (15:43 +0200)
commitb0e4aa97ea4b58881b85697a6f5628d1839d8e59
treec104feb08e94d129f4e8dd014e01bea0fc26ce5b
parent6b20464ad9fb5fd76ef6f219ce62156aa9639dcc
power: supply: core: hide unused HWMON labels

Currently HWMON emulation shows all labels (temp and ambient temp)
regardless if power supply supports reading the values. Check that at
least one property is enabled for each label.

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