forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
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 */