diff options
author | Anirudh Ghayal <aghayal@codeaurora.org> | 2016-01-15 19:02:44 +0530 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:23:00 -0700 |
commit | 038d3f7c39cd17edba3da11f503885f8cca5e026 (patch) | |
tree | 8c4393914556d35fdfc8cdb24cd6b26cebaa638d /drivers | |
parent | d19001685d963d4a82127b86ee68f0de9575f205 (diff) |
power: qpnp-smbcharger: Fix the BMD algo. disable logic
The battery missing detection (BMD) is incorrectly
being enabled. Fix it.
CRs-Fixed: 943881
Change-Id: I58407f0b6ca376bc4809073144429cd4cc3483c9
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/qpnp-smbcharger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/qpnp-smbcharger.c b/drivers/power/qpnp-smbcharger.c index 8e2a69224e75..ba145e3bd189 100644 --- a/drivers/power/qpnp-smbcharger.c +++ b/drivers/power/qpnp-smbcharger.c @@ -6844,7 +6844,7 @@ static int smbchg_hw_init(struct smbchg_chip *chip) /* battery missing detection */ mask = BATT_MISSING_ALGO_BIT; - reg = chip->bmd_algo_disabled ? BATT_MISSING_ALGO_BIT : 0; + reg = chip->bmd_algo_disabled ? 0 : BATT_MISSING_ALGO_BIT; if (chip->bmd_pin_src < BPD_TYPE_DEFAULT) { mask |= BMD_PIN_SRC_MASK; reg |= chip->bmd_pin_src << PIN_SRC_SHIFT; |