sweep2wake/doubletap2wake/touchscreen: Prepare for dt2w

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	drivers/input/touchscreen/Kconfig
	drivers/input/touchscreen/sweep2wake.c
	drivers/input/touchscreen/touch_synaptics.c
	drivers/input/touchscreen/touch_synaptics_ds5.c
	drivers/video/msm/mdss/mdss_dsi_panel.c
Revert "sweep2wake/doubletap2wake/touchscreen: Prepare for dt2w"

This reverts commit c135a826bdc31d28e495c962740cf1aad1b98f6b.
Revert "dt2w: fix triple tap to wake occuring sometimes"

This reverts commit fc66296609ab54df9571f0b15e30d3116d5696a4.
Revert "add doubletap2wake, completely rewritten on the s2w template"

This reverts commit 41aea42f9652e4d88aafcff75cae614eab403ce5.

Conflicts:
	drivers/input/touchscreen/doubletap2wake.c
Revert "drivers/input/touchscreen/touch_synaptics_ds5: fix epic c&p fails for irq_wake indicator"

This reverts commit 03423449a9d947db8505360f69d97c8a624f71c0.
Revert "sweep2wake: add irq_wake indicator"

This reverts commit 95c2743e3b0d363df39c4971de4e367f93b1eaf1.
Revert "drivers/input/touchscreen/touch_synaptics_ds5: add screen suspend indicator"

This reverts commit 9436614581dfc874611e546d96a681256f581a1f.
sweep2wake: add irq_wake indicator

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	drivers/input/touchscreen/touch_synaptics_ds5.c
drivers/input/touchscreen/touch_synaptics_ds5: add missing irq_wake controls and fix c&p typo

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	drivers/input/touchscreen/touch_synaptics_ds5.c
drivers/input/touchscreen/touch_synaptics_ds5: fix epic c&p fails for irq_wake indicator

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
sweep2wake: disable debug

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
sweep2wake: massive update, bring on par with s2w2 except algorithm

This patches sweep2wake on par with s2w2, minus the detection algorithm.
Changes in detail:
- Remove dependency on a power key setter, use a dummy device.
- Remove dependency on a touchscreen driver, use an input callback
- Remove dependency on external sysfs functions
- Remove dependency on external reset calls
- Migrate all of this into sweep2wake

Porting to new devices is now easier than ever:
1. Define your device parameters in the Sweep2wake tuneables
2. Check if the android_touch_kobj is already used by your touchscreen driver
2a. If it is export it and define S2W_ANDROID_TOUCH_DECLARED
(This will prevent s2w from spawning it's own kobj)
3. Force the touchscreen driver to deliver signals in suspend and you are done.

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
sweep2wake & touchscreens: replaced flawed irq_wake procedures with linux functions
Also init device wakeup in init to be able to use those functions in the first place

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
sweep2wake: we no longer need irq_wake. remove it.
Also clean up variable declariation to save some space

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
touch_synaptics: bring on par with touch_synaptics_ds5

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
touch_synaptics: i2c_read: auto retry 10 times before erroring out
The i2c devices we are connecting to may not be ready yet, or just
busy. Retry with a 10ms pause in order to still obtain touch data.
This improves overall touch data robustness, but the main thing it
does:
WE CAN FINALLY GET TOUCH DATA IN SUSPEND ALL THE TIME.

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
touch_synaptics_ds5: i2c_read: auto retry 10 times before erroring out
The i2c devices we are connecting to may not be ready yet, or just
busy. Retry with a 10ms pause in order to still obtain touch data.
This improves overall touch data robustness, but the main thing it
does:
WE CAN FINALLY GET TOUCH DATA IN SUSPEND ALL THE TIME.

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
sweep2wake: disabled as default, enable it over apps/sysfs

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
sweep2wake: cleanup header file

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
touch_synaptics_ds5: remove wakeup procedure for i2c device

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>