Merge remote-tracking branch 'korg/linux-3.4.y' into cm-11.0

Conflicts:
	drivers/usb/serial/usb_wwan.c

Change-Id: Id70a3edb0e4c4494a60af9b9927f0ae12b8b1485
Squashed revert of panel color shifting sysfs interface

Squashed revert for the whole d2 family in preparation for
gamma control shifting.

This reverts commits 62eda51c6195cd0b08d7a4d34d29f7be077f9bf6,
                     41db8f4436b2c55bf9fe1932136e8cae3b04821f,
                     90459ce34ecd1c31591feddfea4b3a1d88ca314e,
                     d97dcfbaf1656c4fcc1e1d0b8a694e8edaba5b6c.

Change-Id: I242cd87025c7075ff36c03632e8fbad33ac8b230
Add Gamma Control v1

Import gamma_control.c at 5647088 from
https://bitbucket.org/morfic/trinity_four

Change-Id: I33dc38b9148c856cc2d27e8a1b1829609b31646b
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: morfic <morfic@gmail.com>
GammaControl: Rework for the d2 family

Rework to gamma control to go along with our panels, bump version
& add make parts.

RGB gamma curve can be shifted by modifying files in:
"/sys/class/misc/gamma_control"

Each gamma value requires 3 values for shifting (red, green, & blue),
i.e:
  echo "25 6 -10" > /sys/class/misc/gamma_control/v255rgb

Includes changes to color offset application from d97dcfb & 90459ce

Change-Id: I81d6ff7bfd261d9c52491da157a4e696168dc8f8
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
GammaControl: create a single tunable knob using previous presets

Change-Id: I49a7f5d009f9a8f51b4a73fae65ba07cdc14b38f
Merge changes I49a7f5d0,I81d6ff7b,I33dc38b9,I242cd870 into cm-11.0

* changes:
  GammaControl: create a single tunable knob using previous presets
  GammaControl: Rework for the d2 family
  Add Gamma Control v1
  Squashed revert of panel color shifting sysfs interface
motor: tspdrv: Check buffer size before copying

Update from VPUDND8

Change-Id: If7a57f15151074b1d984b51255257116121e5682
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
motor: tspdrv: return on invalid buffer index

Update from VPUDND8

Change-Id: I941042c68d89ed636d8be9f2f54bcc1c20f930a8
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
mm: fix anon vma naming

Fix two bugs caused by merging anon vma_naming, a typo in
mempolicy.c and a bad merge in sys.c.

Change-Id: Ia4ced447d50573e68195e95ea2f2b4d9456b8a90
Signed-off-by: Colin Cross <ccross@android.com>
s3c2410_wdt: Add locking to cpu frequency transition notifier

Signed-of-by: Mark Salyzyn <salyzyn@google.com>
Bug: 8173205
Change-Id: I72b2571909fb464ae47a35922049b40eb0486d53