diff options
author | Simon Glass <sjg@chromium.org> | 2014-05-20 06:01:35 -0600 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-05-28 10:58:18 +0900 |
commit | 78a36c3ef390f7780840db3b42837e55e002829a (patch) | |
tree | 3a7fb1c08862c798c2066b059ba480b4c6a40ced /drivers/power/mfd | |
parent | 913702ca397755e06fcc126a063ebbf814ac869b (diff) | |
download | u-boot-imx-78a36c3ef390f7780840db3b42837e55e002829a.zip u-boot-imx-78a36c3ef390f7780840db3b42837e55e002829a.tar.gz u-boot-imx-78a36c3ef390f7780840db3b42837e55e002829a.tar.bz2 |
power: Add PMIC_ prefix to CHARGER_EN/DISABLE
This enum should be common across all PMICs rather than having it
independently defined with the same name in multiple places.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/power/mfd')
-rw-r--r-- | drivers/power/mfd/pmic_max77693.c | 2 |
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; |