Revert "(CR): power: qpnp-smbcharger-mmi: Allow force higher temp limits"

This reverts commit 961bfb3740bf72bd9769158b2750229bf17515e5.

Change-Id: I74c10175f7803d25ecf7957a51d5b14e6c1312fb
Reviewed-on: https://gerrit.mot.com/1433039
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Qiang Nie <nieqiang@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Liyun Zhang 2019-10-07 20:31:40 -05:00
commit 0dcc5135db

View file

@ -706,12 +706,10 @@ static ssize_t force_max_chrg_temp_store(struct device *dev,
return -ENODEV;
}
// MMI_STOPSHIP revert this commit later: safer to have limits. Temporary for Burton EVT1
if ((mode < MIN_MAX_TEMP_C) || (mode > MAX_TEMP_C))
pr_warn("New value %d is outside of suggested limits: min %d, max %d",
mode, MIN_MAX_TEMP_C, MAX_TEMP_C);
mmi_chip->max_chrg_temp = mode;
if ((mode >= MIN_MAX_TEMP_C) && (mode <= MAX_TEMP_C))
mmi_chip->max_chrg_temp = mode;
else
mmi_chip->max_chrg_temp = MAX_TEMP_C;
return r ? r : count;
}