diff options
| author | Anirudh Ghayal <aghayal@codeaurora.org> | 2017-10-11 19:15:24 +0530 |
|---|---|---|
| committer | Anirudh Ghayal <aghayal@codeaurora.org> | 2017-10-11 19:15:24 +0530 |
| commit | 9656e5af11fe6f782a8554200bc5a0ffb1afbd98 (patch) | |
| tree | d087504481d283071f14b056dcd4d3a98146b15f /drivers/leds | |
| parent | aefaae06af1de1dbd72159ab6661c4ceeb8876d7 (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.c | 3 |
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; |
