aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-10-07 00:40:07 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2021-10-13 18:15:57 +0200
commit1a6784359540dcfbf4fa73c07868b80c8405cc14 (patch)
tree052e9fd5b3425fade9698f67c40bfd3d02d5366b /drivers/power
parentdt-bindings: power: supply: ab8500: Standard monitored-battery (diff)
downloadlinux-dev-1a6784359540dcfbf4fa73c07868b80c8405cc14.tar.xz
linux-dev-1a6784359540dcfbf4fa73c07868b80c8405cc14.zip
power: supply: ab8500_bmdata: Use standard phandle
Look up the battery using the "monitored-battery" phandle as is nowadays a standard DT binding. The actual bindings for these charger elements are not upstream so let's sort out this mess by conforming to the standard. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/ab8500_bmdata.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/power/supply/ab8500_bmdata.c b/drivers/power/supply/ab8500_bmdata.c
index 6f5fb794042c..bfc1245d7912 100644
--- a/drivers/power/supply/ab8500_bmdata.c
+++ b/drivers/power/supply/ab8500_bmdata.c
@@ -497,8 +497,7 @@ int ab8500_bm_of_probe(struct device *dev,
const char *btech;
int i;
- /* get phandle to 'battery-info' node */
- battery_node = of_parse_phandle(np, "battery", 0);
+ battery_node = of_parse_phandle(np, "monitored-battery", 0);
if (!battery_node) {
dev_err(dev, "battery node or reference missing\n");
return -EINVAL;