From 4ed8c9fb0586ed87552fbd5126085d57c4e55760 Mon Sep 17 00:00:00 2001 From: Edward Hill Date: Wed, 2 Oct 2019 15:43:55 -0600 Subject: isl9241: fix max/min/step currents in charger info Remove BC_REG_TO_CURRENT conversion since for ISL9241 the max/min/step values are already in milliamps. BUG=b:141785541 BRANCH=none TEST=power on trembyle Change-Id: I77605817aa97a99b9a69a05f663b5fc8d8fd4869 Signed-off-by: Edward Hill Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1838253 Reviewed-by: Keith Short Reviewed-by: Denis Brockus Reviewed-by: Vijay P Hiremath --- driver/charger/isl9241.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'driver/charger/isl9241.c') diff --git a/driver/charger/isl9241.c b/driver/charger/isl9241.c index 1312388b5a..436b1bc981 100644 --- a/driver/charger/isl9241.c +++ b/driver/charger/isl9241.c @@ -50,12 +50,12 @@ static const struct charger_info isl9241_charger_info = { .voltage_max = CHARGE_V_MAX, .voltage_min = CHARGE_V_MIN, .voltage_step = CHARGE_V_STEP, - .current_max = BC_REG_TO_CURRENT(CHARGE_I_MAX), - .current_min = BC_REG_TO_CURRENT(CHARGE_I_MIN), - .current_step = BC_REG_TO_CURRENT(CHARGE_I_STEP), - .input_current_max = AC_REG_TO_CURRENT(INPUT_I_MAX), - .input_current_min = AC_REG_TO_CURRENT(INPUT_I_MIN), - .input_current_step = AC_REG_TO_CURRENT(INPUT_I_STEP), + .current_max = CHARGE_I_MAX, + .current_min = CHARGE_I_MIN, + .current_step = CHARGE_I_STEP, + .input_current_max = INPUT_I_MAX, + .input_current_min = INPUT_I_MIN, + .input_current_step = INPUT_I_STEP, }; static inline int isl9241_read(int offset, int *value) -- cgit v1.2.1