summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/rt5033_battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/supply/rt5033_battery.c')
-rw-r--r--drivers/power/supply/rt5033_battery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/rt5033_battery.c b/drivers/power/supply/rt5033_battery.c
index 32eafe2c00af..7a27b262fb84 100644
--- a/drivers/power/supply/rt5033_battery.c
+++ b/drivers/power/supply/rt5033_battery.c
@@ -159,6 +159,7 @@ static int rt5033_battery_probe(struct i2c_client *client)
return -EINVAL;
}
+ i2c_set_clientdata(client, battery);
psy_cfg.of_node = client->dev.of_node;
psy_cfg.drv_data = battery;