From 60a1f6cada2d068ce2644cec020cef1101d10d4e Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 9 Jul 2013 22:49:38 -0500 Subject: [PATCH] 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 Change-Id: I8ba5da663a1271cba04f57e407eaff96bc052735 Reviewed-on: https://gerrit.chromium.org/gerrit/62208 Reviewed-by: Randall Spangler --- common/charger_bq24715.c | 12 ++++++------ 1 file 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)