summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight
diff options
context:
space:
mode:
authorBen Dooks2008-07-24 06:31:38 +0200
committerLinus Torvalds2008-07-24 19:47:40 +0200
commit0c531360ed504aa0ce995fcb8ef08e82b6534d0b (patch)
tree9062cea313b833c57f3284653608d39df580a323 /drivers/video/backlight
parentfb: add support for the ILI9320 video display controller (diff)
downloadkernel-qcow2-linux-0c531360ed504aa0ce995fcb8ef08e82b6534d0b.tar.gz
kernel-qcow2-linux-0c531360ed504aa0ce995fcb8ef08e82b6534d0b.tar.xz
kernel-qcow2-linux-0c531360ed504aa0ce995fcb8ef08e82b6534d0b.zip
lcd: add lcd_device to check_fb() entry in lcd_ops
Add the lcd_device being checked to the check_fb entry of lcd_ops. This ensures that any driver using this to check against it's own state can do so, and also makes all the calls in lcd_ops more orthogonal in their arguments. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r--drivers/video/backlight/lcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/lcd.c b/drivers/video/backlight/lcd.c
index 299fd318dd45..b15b2b84a6f7 100644
--- a/drivers/video/backlight/lcd.c
+++ b/drivers/video/backlight/lcd.c
@@ -33,7 +33,7 @@ static int fb_notifier_callback(struct notifier_block *self,
ld = container_of(self, struct lcd_device, fb_notif);
mutex_lock(&ld->ops_lock);
if (ld->ops)
- if (!ld->ops->check_fb || ld->ops->check_fb(evdata->info))
+ if (!ld->ops->check_fb || ld->ops->check_fb(ld, evdata->info))
ld->ops->set_power(ld, *(int *)evdata->data);
mutex_unlock(&ld->ops_lock);
return 0;