aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Chen <jason.chen@linaro.org>2012-01-12 08:51:36 +0800
committerEric Miao <eric.miao@linaro.org>2012-01-13 14:49:55 +0800
commit158dcbb1243779da59756cfd3bd3c985d93e9c6c (patch)
tree47f0fbbaef67b0e9bbcddc08c488d77550605d90
parent6d8ef891e5c308431e03c1c0ecdee520ffebc210 (diff)
downloadlinux-linaro-158dcbb1243779da59756cfd3bd3c985d93e9c6c.tar.gz
UGLY: pwm: modify check fb function for lvds
as lvds is using ipu1-di0, just check "DISP4 BG" Signed-off-by: Jason Chen <jason.chen@linaro.org>
-rw-r--r--drivers/video/backlight/pwm_bl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index 63ca212818a..facdb23b433 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -70,11 +70,14 @@ 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 fb_info *info)
{
- struct pwm_bl_data *pb = dev_get_drvdata(&bl->dev);
+ char *id = info->fix.id;
- return !pb->check_fb || pb->check_fb(pb->dev, info);
+ if (!strcmp(id, "DISP4 BG"))
+ return 1;
+ else
+ return 0;
}
static const struct backlight_ops pwm_backlight_ops = {