mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
focaltech_0_flash: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed. Update the code accordingly. NO_PROP_NEEDED: <only applies to bo> Change-Id: Ib29c5fee35ca97f2758435428e26b831fce64e6e Reviewed-on: https://gerrit.mot.com/1707929 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ling Jin <lingjin@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
bf27ccda54
commit
6a4a6ed8db
1 changed files with 2 additions and 1 deletions
|
|
@ -651,7 +651,8 @@ int fts_gesture_init(struct fts_ts_data *ts_data)
|
|||
#ifdef CONFIG_HAS_WAKELOCK
|
||||
wake_lock_init(&gesture_wakelock, WAKE_LOCK_SUSPEND, "poll-wake-lock");
|
||||
#else
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 110))
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 110) || \
|
||||
LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 163))
|
||||
gesture_wakelock = wakeup_source_register(ts_data->dev, "poll-wake-lock");
|
||||
#else
|
||||
gesture_wakelock = wakeup_source_register("poll-wake-lock");
|
||||
|
|
|
|||
Loading…
Reference in a new issue