power: qpnp-smbcharger: fix workaround settings for PMi8994

Currently in the workaround select function, there is a missing break
statement after the PMI8994 subtype case. This causes PMi8994 chargers
to be configured with additional unnecessary workarounds for PMi8950.

Fix this bug by adding the break statement after the PMI8994 subtype
case.

CRs-Fixed: 892014
Change-Id: I66c5e2b49d88d4cc57445e802edd4ee115f0ec33
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
This commit is contained in:
Xiaozhe Shi 2015-11-26 13:00:57 +05:30 committed by Gerrit - the friendly Code Review server
parent 6e6162e4f7
commit e492606e79

View file

@ -7018,6 +7018,7 @@ static int smbchg_wa_config(struct smbchg_chip *chip)
case PMI8994:
chip->wa_flags |= SMBCHG_AICL_DEGLITCH_WA
| SMBCHG_BATT_OV_WA;
break;
case PMI8950:
chip->wa_flags |= SMBCHG_BATT_OV_WA;
if (pmic_rev_id->rev4 < 2) /* PMI8950 1.0 */ {