diff options
author | Super Liu <supercjliu@google.com> | 2020-01-08 22:53:19 +0800 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2020-01-10 15:23:26 +0800 |
commit | 86db2eb25d9d52b2fad4052087ea188a114ee8aa (patch) | |
tree | 06f402c15e9341ea0b737fba29444f9e71e3b4bc | |
parent | 0f31e076ca1c0fbe10462a1e50c2c41ff334b308 (diff) | |
download | sec_touch-86db2eb25d9d52b2fad4052087ea188a114ee8aa.tar.gz |
sec_touch: support to change touch mode during suspend
Bug: 136260549
Change-Id: Ic8682b094ff601b3da4d3875cf5d87509018b026
Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r-- | sec_ts_fn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sec_ts_fn.c b/sec_ts_fn.c index a0b8d1b..7a334fa 100644 --- a/sec_ts_fn.c +++ b/sec_ts_fn.c @@ -6838,6 +6838,7 @@ static void set_touch_mode(void *device_data) int ret = 0; u8 para[4] = { 0 }; + sec_ts_set_bus_ref(ts, SEC_TS_BUS_REF_SYSFS, true); sec_cmd_set_default_result(sec); if (ts->power_status == SEC_TS_STATE_POWER_OFF) { @@ -6947,6 +6948,7 @@ static void set_touch_mode(void *device_data) snprintf(buff, sizeof(buff), "%s", "OK"); sec->cmd_state = SEC_CMD_STATUS_OK; sec_cmd_set_cmd_result(sec, buff, strnlen(buff, sizeof(buff))); + sec_ts_set_bus_ref(ts, SEC_TS_BUS_REF_SYSFS, false); return; @@ -6954,6 +6956,7 @@ err_out: snprintf(buff, sizeof(buff), "%s", "NG"); sec->cmd_state = SEC_CMD_STATUS_FAIL; sec_cmd_set_cmd_result(sec, buff, strnlen(buff, sizeof(buff))); + sec_ts_set_bus_ref(ts, SEC_TS_BUS_REF_SYSFS, false); } int sec_ts_fn_init(struct sec_ts_data *ts) |