diff options
author | Aaron Durbin <adurbin@chromium.org> | 2013-07-09 22:49:38 -0500 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-07-16 16:40:39 -0700 |
commit | 60a1f6cada2d068ce2644cec020cef1101d10d4e (patch) | |
tree | 5a44a52bd02c80056b2ca7934fb865a81968386a | |
parent | 7d6e01d6177739956ae93ca131041764c6b37904 (diff) | |
download | chrome-ec-60a1f6cada2d068ce2644cec020cef1101d10d4e.tar.gz |
bq24715: compilation fix
I accidentally cut and pasted expressions for REG_TO_CURRENT
usage in the initializers for the charger_info struct.
This obviously causes things to blow up during compilation.
BUG=chrome-os-partner:20372
BRANCH=None
TEST=Have been using this on bolt.
Change-Id: Ie5e2ca10f7a3dce0ccb17b889a173a65451b8c92
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Change-Id: I8ba5da663a1271cba04f57e407eaff96bc052735
Reviewed-on: https://gerrit.chromium.org/gerrit/62208
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | common/charger_bq24715.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/charger_bq24715.c b/common/charger_bq24715.c index 5e458cc57a..dcdf249fbf 100644 --- a/common/charger_bq24715.c +++ b/common/charger_bq24715.c @@ -26,12 +26,12 @@ static const struct charger_info bq24725_charger_info = { .voltage_max = CHARGE_V_MAX, .voltage_min = CHARGE_V_MIN, .voltage_step = CHARGE_V_STEP, - .current_max = REG_TO_CURRENT(CHARGE_I_MAX, R_SNS); - .current_min = REG_TO_CURRENT(CHARGE_I_MIN, R_SNS); - .current_step = REG_TO_CURRENT(CHARGE_I_STEP, R_SNS); - .input_current_max = REG_TO_CURRENT(INPUT_I_MAX, R_AC); - .input_current_min = REG_TO_CURRENT(INPUT_I_MIN, R_AC); - .input_current_step = REG_TO_CURRENT(INPUT_I_STEP, R_AC); + .current_max = REG_TO_CURRENT(CHARGE_I_MAX, R_SNS), + .current_min = REG_TO_CURRENT(CHARGE_I_MIN, R_SNS), + .current_step = REG_TO_CURRENT(CHARGE_I_STEP, R_SNS), + .input_current_max = REG_TO_CURRENT(INPUT_I_MAX, R_AC), + .input_current_min = REG_TO_CURRENT(INPUT_I_MIN, R_AC), + .input_current_step = REG_TO_CURRENT(INPUT_I_STEP, R_AC), }; int charger_set_input_current(int input_current) |