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>
This commit is contained in:
Aaron Durbin
2013-07-09 22:49:38 -05:00
committed by ChromeBot
parent 7d6e01d617
commit 60a1f6cada

View File

@@ -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)