diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-10-07 00:40:07 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-10-13 18:15:57 +0200 |
commit | 1a6784359540dcfbf4fa73c07868b80c8405cc14 (patch) | |
tree | 052e9fd5b3425fade9698f67c40bfd3d02d5366b /drivers/power | |
parent | dt-bindings: power: supply: ab8500: Standard monitored-battery (diff) | |
download | linux-1a6784359540dcfbf4fa73c07868b80c8405cc14.tar.xz linux-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.c | 3 |
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; |