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>
This commit is contained in:
Harry Yang 2017-02-14 12:31:47 -08:00
parent 3a7e752617
commit a486d41bf8

View file

@ -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;