commit | 936a774ec10839b4ed923c1c72d627367623499a | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Thu Jul 25 12:28:34 2013 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Thu Jul 25 12:28:34 2013 -0700 |
tree | a4e4f4b2627426d88187f981572f5c237d8a0704 | |
parent | 2bc968e57f0edf48571a8d28df87715677dd6077 [diff] | |
parent | a2964fbbf41eee75c08c9ef1c72bf34d532e8fac [diff] |
Merge "power: qpnp-charger: correct IBATSAFE_MIN_MA setting error"
diff --git a/drivers/power/qpnp-charger.c b/drivers/power/qpnp-charger.c index 0c0b6d3..c023a6d 100644 --- a/drivers/power/qpnp-charger.c +++ b/drivers/power/qpnp-charger.c
@@ -1734,8 +1734,7 @@ return -EINVAL; } - temp = (safe_current - QPNP_CHG_IBATSAFE_MIN_MA) - / QPNP_CHG_I_STEP_MA; + temp = safe_current / QPNP_CHG_I_STEP_MA; return qpnp_chg_masked_write(chip, chip->chgr_base + CHGR_IBAT_SAFE, QPNP_CHG_I_MASK, temp, 1);