power: supply: olpc_battery: fix the power supply name
authorLubomir Rintel <lkundrak@v3.sk>
Sat, 21 Dec 2019 07:17:51 +0000 (08:17 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 10 May 2020 16:56:30 +0000 (18:56 +0200)
commit29e9eff40f5edc2e5de63b28e700e82ed2b6b95c
treeae8d3371032443f06eb5f55b05a977a4baea8905
parentfa7cc725a343e305bef78e8d65be48f37d3f7720
power: supply: olpc_battery: fix the power supply name

The framework is unhappy about them, because it uses the names in sysfs
attributes:

  power_supply olpc-ac: hwmon: 'olpc-ac' is not a valid name attribute, please fix
  power_supply olpc-battery: hwmon: 'olpc-battery' is not a valid name attribute, please fix

See also commit 648cd48c9e56 ("hwmon: Do not accept invalid name
attributes") and commit 74d3b6419772 ("hwmon: Relax name attribute
validation for new APIs").

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
arch/x86/platform/olpc/olpc-xo1-sci.c
arch/x86/platform/olpc/olpc-xo15-sci.c
drivers/platform/olpc/olpc-xo175-ec.c
drivers/power/supply/olpc_battery.c