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/battery/bat_trats2.c | |
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/battery/bat_trats2.c')
-rw-r--r-- | drivers/power/battery/bat_trats2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/battery/bat_trats2.c b/drivers/power/battery/bat_trats2.c index 94015aa..57221ad 100644 --- a/drivers/power/battery/bat_trats2.c +++ b/drivers/power/battery/bat_trats2.c @@ -17,7 +17,7 @@ static int power_battery_charge(struct pmic *bat) { struct power_battery *p_bat = bat->pbat; - if (bat->chrg->chrg_state(p_bat->chrg, CHARGER_ENABLE, 450)) + if (bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_ENABLE, 450)) return -1; return 0; |