hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/power/supply/ab8500_btemp.c
....@@ -921,10 +921,8 @@
921921 */
922922 static void ab8500_btemp_external_power_changed(struct power_supply *psy)
923923 {
924
- struct ab8500_btemp *di = power_supply_get_drvdata(psy);
925
-
926
- class_for_each_device(power_supply_class, NULL,
927
- di->btemp_psy, ab8500_btemp_get_ext_psy_data);
924
+ class_for_each_device(power_supply_class, NULL, psy,
925
+ ab8500_btemp_get_ext_psy_data);
928926 }
929927
930928 /* ab8500 btemp driver interrupts and their respective isr */