summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorAnirudh Ghayal <aghayal@codeaurora.org>2017-10-11 19:15:24 +0530
committerAnirudh Ghayal <aghayal@codeaurora.org>2017-10-11 19:15:24 +0530
commit9656e5af11fe6f782a8554200bc5a0ffb1afbd98 (patch)
treed087504481d283071f14b056dcd4d3a98146b15f /drivers/leds
parentaefaae06af1de1dbd72159ab6661c4ceeb8876d7 (diff)
leds: qpnp-wled: Fix the check to disable AUTO_PFM
Check for PMI8998 subtype and the revision before disabling AUTO_PFM. Change-Id: Ic024dbac18b5c23f1af0f5d2a673634cb5293cbd Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-qpnp-wled.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/leds/leds-qpnp-wled.c b/drivers/leds/leds-qpnp-wled.c
index c85b3e42c8c8..7d11d5e8d095 100644
--- a/drivers/leds/leds-qpnp-wled.c
+++ b/drivers/leds/leds-qpnp-wled.c
@@ -2135,7 +2135,8 @@ static int qpnp_wled_parse_dt(struct qpnp_wled *wled)
if (wled->pmic_rev_id->pmic_subtype == PMI8998_SUBTYPE ||
wled->pmic_rev_id->pmic_subtype == PM660L_SUBTYPE) {
- if (wled->pmic_rev_id->rev4 == PMI8998_V2P0_REV4)
+ if (wled->pmic_rev_id->pmic_subtype == PMI8998_SUBTYPE &&
+ wled->pmic_rev_id->rev4 == PMI8998_V2P0_REV4)
wled->lcd_auto_pfm_en = false;
else
wled->lcd_auto_pfm_en = true;