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:
Rafael Ortolan 2020-07-28 16:07:59 -03:00
commit 6a4a6ed8db

View file

@ -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");