diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2013-05-16 19:26:58 -0700 |
---|---|---|
committer | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-06-09 10:56:02 -0700 |
commit | 2868a28a3132215b39e20647fd531d2338e10b0f (patch) | |
tree | ffedcd31d1ce4f6d65cc48ab14175f6ec3b08327 /drivers | |
parent | 71afe0aa931b4995f5c1c7eb746fb5cbcf1348c5 (diff) |
pwm_bl: use check_fb callback
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/backlight/pwm_bl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index 80e8c78907e2..45106e733b9c 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -66,7 +66,11 @@ static int pwm_backlight_get_brightness(struct backlight_device *bl) static int pwm_backlight_check_fb(struct backlight_device *bl, struct fb_info *info) { + struct pwm_bl_data *pb = dev_get_drvdata(&bl->dev); char *id = info->fix.id; + + if (pb->check_fb) + return pb->check_fb(pb->dev, info); if (!strcmp(id, "DISP3 BG") || !strcmp(id, "DISP3 BG - DI1") || !strcmp(id, "DISP4 BG") || |