Skip to content

Commit a45323a

Browse files
committed
power: supply: ln8411: Pass pointer to battery info
Updates use of power_supply_get_battery_info() handler for upstream change. Change-Id: I77f3c8ba8b2900a17423982cb2a69662a66f05e4 Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Ricardo Rivera-Matos <[email protected]>
1 parent d453e55 commit a45323a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/power/supply/ln8411_charger.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,11 +2124,11 @@ static int ln8411_parse_dt_vusb(struct device *dev, struct ln8411_init_data *ini
21242124

21252125
static void ln8411_parse_battery(struct device *dev, struct ln8411_device *ln8411)
21262126
{
2127-
struct power_supply_battery_info info = { };
2127+
struct power_supply_battery_info *info;
21282128

21292129
if (dev->of_node && !power_supply_get_battery_info(ln8411->charger, &info)) {
2130-
ln8411->init_data.vbat_ovp_uv = info.overvoltage_limit_uv;
2131-
ln8411->init_data.ibat_ocp_ua = info.constant_charge_current_max_ua;
2130+
ln8411->init_data.vbat_ovp_uv = info->overvoltage_limit_uv;
2131+
ln8411->init_data.ibat_ocp_ua = info->constant_charge_current_max_ua;
21322132
dev_dbg(dev, "Found battery info\n");
21332133
} else {
21342134
dev_dbg(dev, "Battery info not found!\n");

0 commit comments

Comments
 (0)