Revert "msm_fb: Enforce a minimum brightness level for lm3530"

This reverts commit 7bce61050ad1c002cc222f59fbbb08db1115ec03.
lm3530: Back out exponential backlight adjustments
backlight: lm3530: fix the abnormal backlght control

- use global mutex
- remove unneccessary earlysuspend codes

Change-Id: I999786f2879e27d1749bfee98cd0451eb24a9ccf
backlight: lm3530: cleanup codes

- add include/linux/platform_data/lm35xx_bl.h
- remove redundant variables and codes
- handle the erorrs in probe
- fix the memory leak

Change-Id: I279ebc9098f70e78d618abdcc75df23bbf8e604a
j1: display: enable CABC function

CABC(Content Adaptive Backlight Control) is supported by
mako lcd panel. So this patch enables it to reduce power
consumption.

Change-Id: I433281bc5fe4e638cfeba1beb9cb61e1775f3896
j1: backlight: sync backlight on/off with lcd on/off

To avoid dispalying garbage during lcd on/off, the turning on
lcd should be done before backlight on and turning off backlight
should be finished before lcd off. But current implementation
doesn't guarantee these on/off sequence. This patch ensure the
sequence of lcd and backligth on/off.

Change-Id: I11771d395c1a68b4e70b63639f50c773a665b441
backlight: lm3530: add level setting to bl_set_intensity()

When application calls FBIOBLANK ioctl without backlight control,
even though bl_set_intensity() is called by fb_notifier_callback,
the backlight level cannot be set properly. So this patch add the
level changing to bl_set_intensity().

Change-Id: Id512c2f1bffbde2d47186d40071d05bc1388dc03
backlight: lm3530: add the backlight map in platform data

Add the backlight map into platform data for calibrating
by the board specific values

Change-Id: Ib997a8cbf738b2700305028f47178f31420f9e85
backlight: lm3530: decrease a little more backlight level

decrease backlight level to 70 nit at the charging mode

Change-Id: I3ad14dbcfc5daf5090219da21c3f348fdb97ff77
backlight: lm3530: set CABC register on first bootup

If we don't apply CABC register setting at the first bootup, then it makes a
power difference between the bootup time and the first suspend and resume,
approximately 38mA.

Change-Id: I91c915af31e9ff6934ce733f3fb2c8b96e1adf31
Signed-off-by: Iliyan Malchev <malchev@google.com>
backlight: lm3530: remove board specific hard-coding value

get the board specific data from pdata. do not hard coding in driver.

Change-Id: Id2ebc4475755adcd81297064f32cc3169c55eaca
backlight: lm3530: add default brightness to pdata

Signed-off-by: Iliyan Malchev <malchev@google.com>
j1: lm3530: Adjustments for usage of the newer backlight driver