mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 23:53:52 +02:00
[ARM]: tegra: stingray: set backlight scaling factor
set backlight scaling factor based on display panel. AUO scaling at 726 makes it bit more brighter Change-Id: I568ff158f00260894d95c00ac1e96632e2636d58 Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
This commit is contained in:
parent
cbdfcbc03f
commit
3e8bebdeaa
|
|
@ -451,8 +451,19 @@ struct lp8550_platform_data stingray_lp8550_backlight_data = {
|
|||
.direct_ctrl = 0x01,
|
||||
.eeprom_table = stingray_lp8550_eeprom_data,
|
||||
.eeprom_tbl_sz = ARRAY_SIZE(stingray_lp8550_eeprom_data),
|
||||
.scaling_factor = 690, /* For SHP and default */
|
||||
};
|
||||
|
||||
static int stingray_lp8550_init(void)
|
||||
{
|
||||
struct lp8550_platform_data *pdata =
|
||||
&stingray_lp8550_backlight_data;
|
||||
if (!strncmp(lcd_manfid, "AUO", 3))
|
||||
pdata->scaling_factor = 726;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct i2c_board_info __initdata stingray_i2c_bus1_led_info[] = {
|
||||
{
|
||||
I2C_BOARD_INFO(LD_LP8550_NAME, 0x2c),
|
||||
|
|
@ -506,6 +517,7 @@ int __init stingray_panel_init(void)
|
|||
platform_device_register(&stingray_panel_early_reg_keyreset_device);
|
||||
|
||||
stingray_hdmi_init();
|
||||
stingray_lp8550_init();
|
||||
|
||||
stingray_csi_reg = regulator_get(NULL, "vcsi");
|
||||
if (IS_ERR(stingray_csi_reg)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user