Revert 10865bac1f

Signed-off-by: Muhammad Najmi Ahmad Zabidi <najmi.zabidi@gmail.com>

Conflicts:

	drivers/input/touchscreen/lge_touch_core.c
	drivers/input/touchscreen/sweep2wake.c
Revert "drivers: input: 2w: rework s2s and now you can use dt2w with this feature"

This reverts commit 1471b027f6ddcae3fd0abb76dd7408b5dafcec09.

Conflicts:

	drivers/input/touchscreen/lge_touch_core.c
Revert "drivers: input: 2w: disable debug operations for s2w and dt2w"

This reverts commit 20c36fe27eb09703d338e44c20a0cd6475a27f5b.
Revert "drivers: input: 2w: add s2s only override"

This reverts commit 6ca44d622f43d05f13cf9ffad629fd0cc805bfe3.
Revert "drivers: input: 2w: enable s2w and dt2w debug"

This reverts commit f38b5bf9ff318c290053e65d91e749e0b861005e.
Revert "drivers: input: 2w: no needed export symbol on power on"

This reverts commit a406dd919412c5480fae83081261208c9a3da51c.

Conflicts:

	drivers/input/touchscreen/sweep2wake.c
Revert "Revert cbfd524b91"

This reverts commit 1487bf9c89022d7d0b47b9368f4668fbe8fdc7bc.

Conflicts:

	drivers/input/misc/pmic8xxx-pwrkey.c
Revert 222021d9e5

Signed-off-by: Muhammad Najmi Ahmad Zabidi <najmi.zabidi@gmail.com>

Conflicts:

	drivers/input/touchscreen/Kconfig
	drivers/input/touchscreen/sweep2wake.c
drivers: misc: Initial support for touchwake

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

Conflicts:

	drivers/input/input.c
	drivers/input/touchscreen/lge_touch_core.c

Conflicts:

	drivers/input/input.c
	drivers/input/touchscreen/lge_touch_core.c
	drivers/misc/Kconfig
input: lge_touch_core: show accuracy and jitter in sysfs

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
input: lge_touch_core: Possible fix touchwake reboot issue

Call touch_press in work_func instead of input_report

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
touchwake: Handle touch suspend/resume only if touchwake is enabled

Refactor suspend/resume to handle touch earlysuspend only if
touchwake is enabled.
(for compatibility with TouchControl app)

Thanks @bponury for hints

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

Conflicts:

	drivers/input/touchscreen/lge_touch_core.c
	drivers/misc/touch_wake.c
	include/linux/touch_wake.h

Conflicts:

	drivers/input/touchscreen/lge_touch_core.c
Revert "touchwake: Handle touch suspend/resume only if touchwake is enabled"

This reverts commit 2bc75c0a586113935fb28c621ff05c0f1254ee4d.
Revert "Revert "touchwake: Handle touch suspend/resume only if touchwake is enabled""

This reverts commit 588c097e4396290222b31ef8fad6fccce9a5061d.
input: lge_touch_core: Send input to touchwake only if it's enabled

Thanks to Bponury.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
input: lge_touch_core: Implement Double tap to wake functionality

If enabled, touchscreen is always powered and user may resume
the device with a double tap on the center of the screen.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

Conflicts:

	arch/arm/configs/semaphore_mako_defconfig
	drivers/input/touchscreen/lge_touch_core.c

Conflicts:

	drivers/input/touchscreen/lge_touch_core.c
Delete Semaphore Defconfig

Signed-off-by: Muhammad Najmi Ahmad Zabidi <najmi.zabidi@gmail.com>
input: lge_touch_core: Rework double touch to wake functionality

- Refactor the code
- Reduce the delay of i2c retry to 10ms
- Use a wake lock when there is a touch to prevent kernel to suspend
- Implement the pm runtime interface

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

Conflicts:

	drivers/input/touchscreen/lge_touch_core.c
	include/linux/input/lge_touch_core.h

Conflicts:

	drivers/input/touchscreen/lge_touch_core.c
input: lge_touch_core: Properly destroy wake lock on touch remove

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
input: lge_touch_core: Release all touch events when power on

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>