summaryrefslogtreecommitdiff
path: root/drivers/power/mfd/pmic_max77693.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/mfd/pmic_max77693.c')
-rw-r--r--drivers/power/mfd/pmic_max77693.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/mfd/pmic_max77693.c b/drivers/power/mfd/pmic_max77693.c
index 1a4416b..6b28e28 100644
--- a/drivers/power/mfd/pmic_max77693.c
+++ b/drivers/power/mfd/pmic_max77693.c
@@ -22,7 +22,7 @@ static int max77693_charger_state(struct pmic *p, int state, int current)
val = MAX77693_CHG_UNLOCK;
pmic_reg_write(p, MAX77693_CHG_CNFG_06, val);
- if (state == CHARGER_DISABLE) {
+ if (state == PMIC_CHARGER_DISABLE) {
puts("Disable the charger.\n");
pmic_reg_read(p, MAX77693_CHG_CNFG_00, &val);
val &= ~0x01;