summaryrefslogtreecommitdiff
path: root/driver/charger/isl9241.c
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2019-10-02 15:43:55 -0600
committerCommit Bot <commit-bot@chromium.org>2019-10-05 00:57:56 +0000
commit4ed8c9fb0586ed87552fbd5126085d57c4e55760 (patch)
treef1f78483b658aa305dffc570ef602b7194285116 /driver/charger/isl9241.c
parent47b264c6eb5074f74dac2ed3d88e7b9e4e6d3139 (diff)
downloadchrome-ec-4ed8c9fb0586ed87552fbd5126085d57c4e55760.tar.gz
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 <ecgh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1838253 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Diffstat (limited to 'driver/charger/isl9241.c')
-rw-r--r--driver/charger/isl9241.c12
1 files changed, 6 insertions, 6 deletions
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)