mako: display: remove lm3533 device

- remove the unused lm3533 device
- use platform_data header for lm3530

Change-Id: Id314d413febc31d0cf66db45a45478e656a51bfc
This commit is contained in:
Devin Kim 2012-07-06 14:30:07 -07:00 committed by Iliyan Malchev
parent 3b795c2300
commit 67aaf769ee

View file

@ -16,6 +16,7 @@
#include <linux/ioport.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
#include <linux/platform_data/lm35xx_bl.h>
#include <linux/bootmem.h>
#include <linux/ion.h>
#include <asm/mach-types.h>
@ -684,8 +685,6 @@ static int hdmi_cec_power(int on)
#if defined (CONFIG_BACKLIGHT_LM3530)
extern void lm3530_lcd_backlight_set_level( int level);
#elif defined (CONFIG_BACKLIGHT_LM3533)
extern void lm3533_lcd_backlight_set_level( int level);
#endif
#if defined(CONFIG_FB_MSM_MIPI_LGIT_VIDEO_WXGA_PT)
@ -911,18 +910,6 @@ struct i2c_registry {
#define PWM_BRIGHTNESS 0x20
#endif
struct backlight_platform_data {
void (*platform_init)(void);
int gpio;
unsigned int mode;
int max_current;
int init_on_boot;
int min_brightness;
int max_brightness;
int default_brightness;
int factory_brightness;
};
#if defined (CONFIG_BACKLIGHT_LM3530)
static struct backlight_platform_data lm3530_data = {
@ -936,28 +923,13 @@ static struct backlight_platform_data lm3530_data = {
.max_brightness = 0x71,
};
#elif defined(CONFIG_BACKLIGHT_LM3533)
static struct backlight_platform_data lm3533_data = {
.gpio = PM8921_GPIO_PM_TO_SYS(24),
#if defined(CONFIG_LGE_BACKLIGHT_CABC)
.max_current = 0x17 | PWM_SIMPLE_EN,
#else
.max_current = 0x17,
#endif
.min_brightness = 0x05,
.max_brightness = 0xFF,
.default_brightness = 0x9C,
.factory_brightness = 0x78,
};
#endif
static struct i2c_board_info msm_i2c_backlight_info[] = {
{
#if defined(CONFIG_BACKLIGHT_LM3530)
I2C_BOARD_INFO("lm3530", 0x38),
.platform_data = &lm3530_data,
#elif defined(CONFIG_BACKLIGHT_LM3533)
I2C_BOARD_INFO("lm3533", 0x36),
.platform_data = &lm3533_data,
#endif
}
};