Xiaomi fixes
    gralloc: Add workaround for Jellybean camera drivers

    * Arcee is smarter than I am, and discovered that we can simply swap
      two fields to ensure compatibility with Jellybean camera drivers
      having the metadata fields in the private_handle_t struct.
    * Enable this by defining QCOM_BSP_CAMERA_ABI_HACK.

Change-Id: Id94b746f46ea1c473b74e66c51790fc144890bee
merge caf/jb2.6
Add set_light_battery & clear state before new value

N/A

Change-Id: Ib6f334098f53adad1f9fc0fa10547d664124aa45
Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>
Mi2 dont support blink

N/A

Change-Id: Ic307ff8ec6a9ab6879f9f3df7bd6ba893d94c2fc
Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>
Merge cm to fix mdp issus

N/A

Change-Id: Id1d89fa75aea5d1f6ad90441a0093552ad03c072
Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>
Remove unneed

N/A

Change-Id: Id1c5ba4ff4cbe13d9aee392631e5180978f66d00
Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>
gralloc:Fix some differences with compatibility code

N/A

Change-Id: Ief841fee9d3ff37b56579b207c0e057cfd6dcad8
Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>
Merge branch cm-10.2 from CyanogenMod

N/A

Change-Id: I4d87bb108ef751189e686791e9af22ad983e5150
Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>