Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83266333 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: vm-bms: Use "of_parse_phandle" to parse battery-data property"

parents 7bd64292 22301b19
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3477,8 +3477,8 @@ static int set_battery_data(struct qpnp_bms_chip *chip)
		pr_err("cannot read battery id err = %lld\n", battery_id);
		return battery_id;
	}
	node = of_find_node_by_name(chip->pdev->dev.of_node,
					"qcom,battery-data");
	node = of_parse_phandle(chip->pdev->dev.of_node,
					"qcom,battery-data", 0);
	if (!node) {
		pr_err("No available batterydata\n");
		return -EINVAL;