summaryrefslogtreecommitdiff
path: root/drivers/power/supply/ab8500-chargalg.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/supply/ab8500-chargalg.h')
-rw-r--r--drivers/power/supply/ab8500-chargalg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/ab8500-chargalg.h b/drivers/power/supply/ab8500-chargalg.h
index 94a6f9068bc5..07e6ff50084f 100644
--- a/drivers/power/supply/ab8500-chargalg.h
+++ b/drivers/power/supply/ab8500-chargalg.h
@@ -15,7 +15,7 @@
* - POWER_SUPPLY_TYPE_USB,
* because only them store as drv_data pointer to struct ux500_charger.
*/
-#define psy_to_ux500_charger(x) power_supply_get_drvdata(psy)
+#define psy_to_ux500_charger(x) power_supply_get_drvdata(x)
/* Forward declaration */
struct ux500_charger;