diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2017-10-18 10:16:53 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-18 06:15:05 -0700 |
commit | 8434ed8f1020d47d11bf38193700d4e7b6eb1694 (patch) | |
tree | 9c037d9f17dc5d5ac487e9a156b8816f281a16eb | |
parent | b9e07ce1bfa42ea2a5e7564575b0072c13811c31 (diff) | |
download | chrome-ec-8434ed8f1020d47d11bf38193700d4e7b6eb1694.tar.gz |
isl9237: Fix HW ramp setting in charger_post_init
While introducing support for isl9238, I accidentally used an
incorrect config option (CONFIG_ISL9237), instead of
CONFIG_CHARGER_ISL9237.
BRANCH=none
BUG=b:35585464
TEST=make buildall -j
Fixes: b1101b8ed66 charger: isl923x: Add support for ISL9238
Change-Id: I2f62f3fbefbc60cc9d83726ef88a66c5c9f1b245
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/725121
Reviewed-by: Rong Chang <rongchang@chromium.org>
-rw-r--r-- | driver/charger/isl923x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/charger/isl923x.c b/driver/charger/isl923x.c index a570768e05..16e7e2c66d 100644 --- a/driver/charger/isl923x.c +++ b/driver/charger/isl923x.c @@ -253,14 +253,14 @@ int charger_post_init(void) return rv; #ifdef CONFIG_CHARGE_RAMP_HW -#ifdef CONFIG_ISL9237 +#ifdef CONFIG_CHARGER_ISL9237 rv = charger_get_option(®); if (rv) return rv; /* Set input voltage regulation reference voltage for charge ramp */ - reg &= ~ISL923X_C0_VREG_REF_MASK; - reg |= ISL923X_C0_VREG_REF_4200; + reg &= ~ISL9237_C0_VREG_REF_MASK; + reg |= ISL9237_C0_VREG_REF_4200; return charger_set_option(reg); #else |