*/
static void ab8500_btemp_external_power_changed(struct power_supply *psy)
{
- class_for_each_device(&power_supply_class, NULL, psy,
- ab8500_btemp_get_ext_psy_data);
+ power_supply_for_each_device(psy, ab8500_btemp_get_ext_psy_data);
}
/* ab8500 btemp driver interrupts and their respective isr */