backlight: lp855x_bl: support new LP8557 device
authorKim, Milo <Milo.Kim@ti.com>
Fri, 22 Feb 2013 00:44:06 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:25 +0000 (17:22 -0800)
commit26e8ccc223ebfd2047a96074f142544dc7062cfe
tree5bb294732ee8502a139d578d61d1faaae2031618
parent68853bc2b360c06094477523f7d28efd2d9e3bf3
backlight: lp855x_bl: support new LP8557 device

LP8557 is one of LP855x family device, but it has different register map
and initialization process.  To support this device, device specific
configuration is done through the lp855x_device_config structure.

Few register definitions are fixed for better readability.
  BRIGHTNESS_CTRL -> LP855X_BRIGHTNESS_CTRL
  DEVICE_CTRL     -> LP855X_DEVICE_CTRL
  EEPROM_START    -> LP855X_EEPROM_START
  EEPROM_END      -> LP855X_EEPROM_END
  EPROM_START     -> LP8556_EPROM_START
  EPROM_END       -> LP8556_EPROM_END

And LP8557 register definitions are added.  New register function,
lp855x_update_bit() is added.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/backlight/lp855x-driver.txt
drivers/video/backlight/Kconfig
drivers/video/backlight/lp855x_bl.c
include/linux/platform_data/lp855x.h