mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
sec_mmi: Fix default prop reset on resume
When the post resume runs it stores the values set in init if the values were updated when the chip was on instead of the new values. Copy the new values to the buffer regardless of the state. Change-Id: I6ab9bf709746f2ac67eee786c4c5f36e9fcb1b72 Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1516061 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
4380bf72fd
commit
8816d3dac8
1 changed files with 3 additions and 3 deletions
|
|
@ -231,9 +231,9 @@ static ssize_t sec_mmi_suppression_store(struct device *dev,
|
|||
buffer = (unsigned char)value;
|
||||
dev_dbg(dev, "%s: program value 0x%02x\n", __func__, (unsigned int)buffer);
|
||||
|
||||
ts->suppression_data = buffer;
|
||||
if (ts->power_status == SEC_TS_STATE_POWER_OFF) {
|
||||
dev_dbg(dev, "%s: power off state\n", __func__);
|
||||
ts->suppression_data = buffer;
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
@ -306,9 +306,9 @@ static ssize_t sec_mmi_pill_region_store(struct device *dev,
|
|||
(unsigned int)buffer[2], (unsigned int)buffer[3],
|
||||
(unsigned int)buffer[4]);
|
||||
|
||||
memcpy(ts->pill_region_data, buffer, sizeof(ts->pill_region_data));
|
||||
if (ts->power_status == SEC_TS_STATE_POWER_OFF) {
|
||||
dev_dbg(dev, "%s: power off state\n", __func__);
|
||||
memcpy(ts->pill_region_data, buffer, sizeof(ts->pill_region_data));
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
@ -386,9 +386,9 @@ static ssize_t sec_mmi_hold_distance_store(struct device *dev,
|
|||
buffer = (unsigned char)value;
|
||||
dev_dbg(dev, "%s: program value 0x%02x\n", __func__, (unsigned int)buffer);
|
||||
|
||||
ts->hold_distance_data = buffer;
|
||||
if (ts->power_status == SEC_TS_STATE_POWER_OFF) {
|
||||
dev_dbg(dev, "%s: power off state\n", __func__);
|
||||
ts->hold_distance_data = buffer;
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue