From 6969a46c888818eb7858884f982f4c76b1a2710d Mon Sep 17 00:00:00 2001 From: William Lai Date: Thu, 1 Apr 2010 13:19:07 +0800 Subject: [PATCH] ENGR00122206 MX53-EVK pwm-backlight: PWM backlight enhancement Don't trun off the pwm backlight when blanking the fore-ground. Signed-off-by: William Lai --- drivers/video/backlight/pwm_bl.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index b8f38ec6eb18..57545654d7a1 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -63,12 +63,13 @@ static int pwm_backlight_get_brightness(struct backlight_device *bl) return bl->props.brightness; } -static int pwm_backlight_check_fb(struct backlight_device *bl, - struct fb_info *info) +static int pwm_backlight_check_fb(struct fb_info *info) { - struct pwm_bl_data *pb = dev_get_drvdata(&bl->dev); - - return !pb->check_fb || pb->check_fb(pb->dev, info); + char *id = info->fix.id; + if (!strcmp(id, "DISP3 BG")) + return 1; + else + return 0; } static const struct backlight_ops pwm_backlight_ops = { -- 2.39.5