Backlight - Removed backlight data related to GPIO
authorPhilip, Avinash <avinashphilip@ti.com>
Wed, 18 Jan 2012 05:42:46 +0000 (11:12 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:54 +0000 (00:44 +0530)
As backlight is enabled through PWM, cleaning up the GPIO based
backlight data.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
arch/arm/mach-omap2/board-am335xevm.c

index e54aebe6b23ad0ce9d0bdf05b26c4a58f53b509e..b70c6302ac19f74e22cb9377818e716f5e658d71 100644 (file)
@@ -125,7 +125,6 @@ static const struct display_panel disp_panel = {
        COLOR_ACTIVE,
 };
 
-#define AM335X_LCD_BL_PIN      GPIO_TO_PIN(0, 7)
 /* LCD backlight platform Data */
 #define AM335X_BACKLIGHT_MAX_BRIGHTNESS        250
 #define AM335X_BACKLIGHT_DEFAULT_BRIGHTNESS    250
@@ -158,13 +157,10 @@ static struct lcd_ctrl_config lcd_cfg = {
        .raster_order           = 0,
 };
 
-static void am335x_gpio_bl_ctrl(int val);
-
 struct da8xx_lcdc_platform_data TFC_S9700RTWV35TR_01B_pdata = {
        .manu_name              = "ThreeFive",
        .controller_data        = &lcd_cfg,
        .type                   = "TFC_S9700RTWV35TR_01B",
-       .panel_power_ctrl       = am335x_gpio_bl_ctrl,
 };
 
 #include "common.h"
@@ -866,11 +862,6 @@ static void enable_ecap0(int evm_id, int profile)
        backlight_enable = true;
 }
 
-static void am335x_gpio_bl_ctrl(int val)
-{
-       /* lcd backlight */
-       gpio_set_value(AM335X_LCD_BL_PIN, val);
-}
 /* Setup pwm-backlight */
 static struct platform_device am335x_backlight = {
        .name           = "pwm-backlight",