initial s2w dt2w code import from @showp1984

Signed-off-by: shivamk11 <shivamk11@gmail.com>
sweep2wake/doubletap2wake: adapt for Moto G

Signed-off-by: shivamk11 <shivamk11@gmail.com>
mdss:mdss_dsi_panel.c: add s2wake/dt2wake screen on/off hooks

Signed-off-by: shivamk11 <shivamk11@gmail.com>
s2w: remove all s2sonly code

Signed-off-by: shivamk11 <shivamk11@gmail.com>
s2w: Add bidirectional sweep2sleep

Signed-off-by: shivamk11 <shivamk11@gmail.com>
powersuspend: new PM kernel driver for Android w/o early_suspend

Android early_suspend/late_resume PM kernel driver framework has been
deprecated by Google. This new powersuspend PM kernel driver is a replacement
for it and existing early_suspend drivers can be easily adapted to use this
new replacement driver

powersuspend: fix logci derps :p

Signed-off-by: shivamk11 <shivamk11@gmail.com>
kernel/power/powersuspend: remove userspace dependency from powersuspend

make powersuspend not depend on a userspace initiator anymore, but use a hook
in autosleep instead.

Signed-off-by: shivamk11 <shivamk11@gmail.com>
kernel/power/powersuspend: add back userpace control w/ default kernel control

make kernel / userspace mode switchable

Signed-off-by: shivamk11 <shivamk11@gmail.com>
kernel/power/powersuspend: default to userspace for now

Signed-off-by: shivamk11 <shivamk11@gmail.com>
kernel/power/powersuspend: LCD screen on/off hooks

- add an alternative hook for screen on / off detection in the display
  pannel driver
- sleeps  ~0.1s sooner, wakes up ~1s later then autosleep
- clean up source formatting a bit (Paul Reioux)

Signed-off-by: shivamk11 <shivamk11@gmail.com>
mdss_dsi_panel.c: add powersuspend hooks

Signed-off-by: shivamk11 <shivamk11@gmail.com>
kernel/power/powersuspend: cumulative update to version 1.5

- fix hybrid-kernel mode cannot be set through sysfs

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.4 (Yank555.lu)

- add hybrid-kernel mode (autosleep and panel, first wins)
- default to hybrid-kernel mode
- harmonize debug message with my other stuff
- include all 3 modes as default, so it's only commenting out to change

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.3 (Yank555.lu)

- fix stupid typo
- add an alternative hook for screen on / off detection in the display panel driver
(sleeps ~0.1s sooner, wakes up ~1s later then autosleep)

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.2 (Yank555.lu)

- make kernel / userspace mode switchable

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.1 (Yank555.lu)

- make powersuspend not depend on a userspace initiator anymore, but use a hook in autosleep instead.

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend (faux123)

Android early_suspend/late_resume PM kernel driver framework has been
deprecated by Google. This new powersuspend PM kernel driver is a replacement
for it and existing early_suspend drivers can be easily adapted to use this
new replacement driver

Signed-off-by: shivamk11 <shivamk11@gmail.com>
drivers/video/msm/mdss/mdss_dsi_panel.c: update powersuspend hook calls

fix typo!

Signed-off-by: shivamk11 <shivamk11@gmail.com>
defconfig: enable dt2w
S2W, DT2W: Modify to use Powersuspend
Sweep2wake: Fix derp for Powersuspend
s2w/dt2w: implement Pocket mode and make the features usable in deep sleep THX to Alin23!!!

Signed-off-by: shivamk11 <shivamk11@gmail.com>
s2w/dt2w: separate PocketMode specific code

Signed-off-by: shivamk11 <shivamk11@gmail.com>
dt2w: improve accuracy of single touch detection

Signed-off-by: shivamk11 <shivamk11@gmail.com>