diff options
author | Wendly Li <wendlyli@google.com> | 2022-06-24 05:50:17 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2022-07-04 06:30:42 +0000 |
commit | b8e8849b7187e5b34dadb78386a0797ce422c6dd (patch) | |
tree | 61748864b23af460a7d5fcf24a500cfb04b51c7c /touch_apis.c | |
parent | 0fd1a952fe2109de81a6268b94ab1ec2f879fc8c (diff) | |
download | goodix_touch-b8e8849b7187e5b34dadb78386a0797ce422c6dd.tar.gz |
touch/goodix: Enable gti pm and tbn
Bug: 214118944
Test: Be able to wake up device by gestures.
Change-Id: I90f6b6ead33a2c26e1631a7c5df525121fc28255
Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'touch_apis.c')
-rw-r--r-- | touch_apis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/touch_apis.c b/touch_apis.c index 319a043..8caa94d 100644 --- a/touch_apis.c +++ b/touch_apis.c @@ -301,7 +301,7 @@ static ssize_t wake_lock_show( if (apis->get_wake_lock_state != NULL) { locked = apis->get_wake_lock_state( - dev, TPM_WAKELOCK_TYPE_FORCE_ACTIVE); + dev, GTI_PM_WAKELOCK_TYPE_FORCE_ACTIVE); ret = snprintf(buf, PAGE_SIZE, "result: %s\n", locked ? "locked" : "unlocked"); } else { @@ -329,7 +329,7 @@ static ssize_t wake_lock_store(struct device *dev, if (apis->set_wake_lock_state != NULL) { ret = apis->set_wake_lock_state( - dev, TPM_WAKELOCK_TYPE_FORCE_ACTIVE, locked); + dev, GTI_PM_WAKELOCK_TYPE_FORCE_ACTIVE, locked); if (ret < 0) { return ret; } |