diff options
author | William Lai <b04597@freescale.com> | 2010-04-01 13:19:07 +0800 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-25 11:20:19 +0200 |
commit | c926b11e1ea998a51265088f73f2fa880a7e95c8 (patch) | |
tree | 58f3e588ab9f18cda3703649b076969a4f80ccb4 /drivers | |
parent | 3f59fe0ee827aa12cecd8bcf1573a66945e5b02b (diff) |
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 <b04597@freescale.com>
Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/backlight/pwm_bl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index 887166267443..29024e83b36a 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -56,9 +56,19 @@ static int pwm_backlight_get_brightness(struct backlight_device *bl) return bl->props.brightness; } +static int pwm_backlight_check_fb(struct fb_info *info) +{ + char *id = info->fix.id; + if (!strcmp(id, "DISP3 BG")) + return 1; + else + return 0; +} + static struct backlight_ops pwm_backlight_ops = { .update_status = pwm_backlight_update_status, .get_brightness = pwm_backlight_get_brightness, + .check_fb = pwm_backlight_check_fb, }; static int pwm_backlight_probe(struct platform_device *pdev) |