]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00122206 MX53-EVK pwm-backlight: PWM backlight enhancement
authorWilliam Lai <b04597@freescale.com>
Thu, 1 Apr 2010 05:19:07 +0000 (13:19 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:32:29 +0000 (08:32 +0200)
Don't trun off the pwm backlight when blanking the fore-ground.

Signed-off-by: William Lai <b04597@freescale.com>
drivers/video/backlight/pwm_bl.c

index b8f38ec6eb1898ab0b60d606ec1f3998e11fe339..57545654d7a133da3da57adc468fca79f5eb2b43 100644 (file)
@@ -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 = {