power: supply: core: add power_supply_for_each_device()
[linux-2.6-block.git] / drivers / power / supply / ab8500_btemp.c
index 41dba40fffdfce8d47fdeb12957f424cb62e7ca8..56f136b2d071d3a1d10a54455edd314ebabe6272 100644 (file)
@@ -617,8 +617,7 @@ static int ab8500_btemp_get_ext_psy_data(struct device *dev, void *data)
  */
 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 */