summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Yang <harryy@codeaurora.org>2017-02-14 12:31:47 -0800
committerHarry Yang <harryy@codeaurora.org>2017-02-14 12:43:25 -0800
commita486d41bf884ea3e08e44e6ac54889cd8b8f36e1 (patch)
treefe58b07d79057ac155b7a23ad11fbd7805275c0a
parent3a7e752617514960c5cecdf84e12b13dc63c04c7 (diff)
smb138x-charger: Fix max conn temp config
The value of device tree property qcom,connector-temp-max-mdegc is passed to a wrong variable. Fix it. CRs-Fixed: 1077217 Change-Id: I705467d91dd8e5e9ea4aa0ab231e29c512608f36 Signed-off-by: Harry Yang <harryy@codeaurora.org>
-rw-r--r--drivers/power/supply/qcom/smb138x-charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/qcom/smb138x-charger.c b/drivers/power/supply/qcom/smb138x-charger.c
index 554625adda7d..520a2dc827b7 100644
--- a/drivers/power/supply/qcom/smb138x-charger.c
+++ b/drivers/power/supply/qcom/smb138x-charger.c
@@ -155,7 +155,7 @@ static int smb138x_parse_dt(struct smb138x *chip)
rc = of_property_read_u32(node,
"qcom,connector-temp-max-mdegc",
- &chip->dt.chg_temp_max_mdegc);
+ &chip->dt.connector_temp_max_mdegc);
if (rc < 0)
chip->dt.connector_temp_max_mdegc = 105000;