Revert "drivers: input: 2w: sweep2wake add mako definitions"

This reverts commit 3b9baeb7a170ddcb3241d11c1be0a62938bcba44.

Revert "drivers: input: 2w: fix compilation with earlyspend"

This reverts commit 5e43efa38253b4924600789b7f6bb144fbe75461.

Revert "drivers: input: 2w: cleaned s2w_s2sonly unused external integer"

This reverts commit 4f037818d29efb1d1408198281dd9b018dde8624.

Revert "drivers: input: 2w: fix problem with hardboot and multitouch"

This reverts commit 360e0adbcbc05e5ab6ed4fff052cc9397771198c.

Revert "drivers: input: 2w: hacky solution for unresponsive screen"

This reverts commit 937e63ad04bfdf516a4a84a9f885d6e551cc8a89.

Revert "drivers: input: 2w: rework s2s and now you can use dt2w with this feature"

This reverts commit c5ecc960b1ba2f153e45b6efcf24e7b4f486c0e2.

Revert "drivers: input: 2w: add options for enable/disable 2w with power button"

This reverts commit 5d63c4a14ea18a4db66d770adaf2a261160d844d.

Revert "drivers: input: 2w: fix derp into power wake for dt2w"

This reverts commit ade4e3bdacc6c4bdc9862424af9bb6aac675e2d1.

Revert "drivers: input: 2w: disable debug operations for s2w and dt2w"

This reverts commit 2fd1333d206d470cf507a1a1c15052fee99cf042.

Revert "drivers: input: 2w: add s2s only override"

This reverts commit 25a012a4d5461edb6ea4c545f22fbc17c7d31eaa.

Revert "drivers: input: 2w: fix derp into early and late resume routine"

This reverts commit 70641a1aaf615c6208d7319749beb79aea5f9e97.

Revert "drivers: input: 2w: rework early and late resume for touchscreen operations"

This reverts commit e6fce678eabb94f690a071362b1a01df47b00df2.

Revert "drivers: input: 2w: fix irq derp and reference"

This reverts commit e01100845b333913729fbf0ae2a34ec941c00d0f.

Revert "drivers: input: 2w: don't wait for irq events to be handled, just disable the irq"

This reverts commit ed8edb1d06a4d86387e50b763586aeb08daf3cfa.

Revert "drivers: input: 2w: remove device_init_wakeup"

This reverts commit 53b34f5543ce356217ae2ccd02c5b44261d3605e.

Revert "drivers: input: 2w: different power on display for s2w and dt2w"

This reverts commit 6836f688837b6ffb5d4d943cd2c70a01724bb762.

Revert "drivers: input: 2w: add power on display for dt2w"

This reverts commit e2854048723241e51272a219c012769797154b93.

Revert "drivers: input: 2w: add selection for power on display when register input touch"

This reverts commit 117face9649d635b06227c5a19249b4e133ff550.

Revert "drivers: input: 2w: add touch core interrupt events"

This reverts commit 56432efb3ad4ae24ebf910893d68668b9fffa733.

Revert "drivers: input: 2w: add irq no suspend and i2c retry count"

This reverts commit 498118d5d980f71d7a890e13a9cd9db1bacc4abc.

Revert "drivers: input: 2w: add kernel info to power on display"

This reverts commit 27d3550b71be1f728defc9e3914e162fd8ba1b19.

Revert "drivers: input: 2w: enable s2w and dt2w debug"

This reverts commit eb007cf7ad0dceba4bc98649c7ea6f12c4290190.

Revert "drivers: input: 2w: no needed export symbol on power on"

This reverts commit d45f51a015a7d5ad1df30b94ca38f19faf498139.

Revert "drivers: input: 2w: power on display when register input touch"

This reverts commit 97d6bf9f7fdacf55b0a281f3d7ba08d3d24e264e.

Revert "drivers: input: 2w: squashed s2w and dt2w from Bricked n5 - Phase 2"

This reverts commit beff3eca962eef082bf9369f557b801acc571854.

Revert "drivers: input: 2w: squashed s2w and dt2w from Bricked n5 - Phase 1"

This reverts commit 809c919b5d4e26142c256f839a05de814a7a5d97.
Revert "input: touchscreen: change filter parameters courtesy of viking37."

This reverts commit a5b0a4075a48d36835e85d2f245afb67b5c29a0d.
Revert "Accuracy Filter Control: export accuracy filter items to userspace via"

This reverts commit 78e2617945fbf3c9dca19b6a950f079c43ba1b53.
drivers: misc: Initial support for touchwake

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
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>
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>
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>
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>
input: lge_touch_core: Reset touch screen on power on

When power on the device reset touch screen to avoid
unresponsive touch screen issues.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Enable touch wake and double tap to wake by default