From a486d41bf884ea3e08e44e6ac54889cd8b8f36e1 Mon Sep 17 00:00:00 2001 From: Harry Yang Date: Tue, 14 Feb 2017 12:31:47 -0800 Subject: [PATCH] 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 --- drivers/power/supply/qcom/smb138x-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;