Don't trun off the pwm backlight when blanking the fore-ground.
Signed-off-by: William Lai <b04597@freescale.com>
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 = {