hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/power/supply/ab8500_fg.c
....@@ -2380,10 +2380,8 @@
23802380 */
23812381 static void ab8500_fg_external_power_changed(struct power_supply *psy)
23822382 {
2383
- struct ab8500_fg *di = power_supply_get_drvdata(psy);
2384
-
2385
- class_for_each_device(power_supply_class, NULL,
2386
- di->fg_psy, ab8500_fg_get_ext_psy_data);
2383
+ class_for_each_device(power_supply_class, NULL, psy,
2384
+ ab8500_fg_get_ext_psy_data);
23872385 }
23882386
23892387 /**