Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Linus Walleij and committed by
Sebastian Reichel
1a678435 eb415571

+1 -2
+1 -2
drivers/power/supply/ab8500_bmdata.c
··· 497 497 const char *btech; 498 498 int i; 499 499 500 - /* get phandle to 'battery-info' node */ 501 - battery_node = of_parse_phandle(np, "battery", 0); 500 + battery_node = of_parse_phandle(np, "monitored-battery", 0); 502 501 if (!battery_node) { 503 502 dev_err(dev, "battery node or reference missing\n"); 504 503 return -EINVAL;