summaryrefslogtreecommitdiff
path: root/drivers/power/pmic/pmic_max8997.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/pmic/pmic_max8997.c')
-rw-r--r--drivers/power/pmic/pmic_max8997.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/pmic/pmic_max8997.c b/drivers/power/pmic/pmic_max8997.c
index ba016923275..a36a9a08bf4 100644
--- a/drivers/power/pmic/pmic_max8997.c
+++ b/drivers/power/pmic/pmic_max8997.c
@@ -35,7 +35,7 @@ static int pmic_charger_state(struct pmic *p, int state, int current)
if (pmic_probe(p))
return -1;
- if (state == CHARGER_DISABLE) {
+ if (state == PMIC_CHARGER_DISABLE) {
puts("Disable the charger.\n");
pmic_reg_read(p, MAX8997_REG_MBCCTRL2, &val);
val &= ~(MBCHOSTEN | VCHGR_FC);