diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-11-30 03:23:37 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-11-30 03:23:36 -0800 |
commit | aa5d40233b168b5e52b0d322ffe4d7abf7aa14a1 (patch) | |
tree | 9a5bce47113d04da31a6cff2f9bbc5dc8eaeba66 /drivers | |
parent | 39312eaf10f92d449fe51880ffc4567c832378a0 (diff) | |
parent | 9656e5af11fe6f782a8554200bc5a0ffb1afbd98 (diff) |
Merge "leds: qpnp-wled: Fix the check to disable AUTO_PFM"
Diffstat (limited to 'drivers')
-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 b0519544759e..1d84ec4687e2 100644 --- a/drivers/leds/leds-qpnp-wled.c +++ b/drivers/leds/leds-qpnp-wled.c @@ -2215,7 +2215,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; |