mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
4bd9556c01
commit
0dcc5135db
1 changed files with 4 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue