LCD KCAL: Fix Gamma max value issue

Major thanks to Yorici Vz for his tireless pursuit of perfection on Nexus 5
Color / Gamma :D

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Enable proprietary charger detection (e.g. iPhone/iPad charger) and treat it as AC power source.

Signed-off-by: flar2 <asegaert@gmail.com>
GPU: add optimization flags to GPU drivers

Signed-off-by: Lens-F <tnoah12@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
GCC 4.9.1: fix compile warnings
touch_synaptics: low power mode
Revert "touch_synaptics: low power mode"

This reverts commit dafb14e6184902d41596e2fa0e1b7dfafc196b42.

This doesn't seem to have any power saving effect
Regulator: lower minimum voltage constraint for l22
Wake Gestures interface and other options for S2W/S2S/DT2W

The wake gestures interface creates a new input device (wake_gesture) and generates input events for several gestures while the screen is off:

1 -> sweep right
2 -> sweep left
3 -> sweep up
4 -> sweep down
5 -> doubletap

These input events can be used by userspace apps to perform custom actions for each gesture

Also added bi-directional sweep2sleep, omnidirectional sweep2wake and optional haptic feedback for gestures