diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-10-02 13:28:18 +0400 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-16 14:50:41 +0300 |
commit | 1e0fa6bd8c7468067f2e988c7a416dafd0651c34 (patch) | |
tree | c47ca56a3e8cd4c9d76cd29c271b6f8e8b9f544e /drivers/video | |
parent | a9366e61b03f55a6e009e687ad10e706714c9907 (diff) | |
download | linux-1e0fa6bd8c7468067f2e988c7a416dafd0651c34.tar.xz |
backlight: lcd - Fix wrong sizeof
Which is why I have always preferred sizeof(struct foo) over
sizeof(var).
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/lcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/lcd.c b/drivers/video/backlight/lcd.c index b6449470106c..a482dd7b0311 100644 --- a/drivers/video/backlight/lcd.c +++ b/drivers/video/backlight/lcd.c @@ -56,7 +56,7 @@ static int fb_notifier_callback(struct notifier_block *self, static int lcd_register_fb(struct lcd_device *ld) { - memset(&ld->fb_notif, 0, sizeof(&ld->fb_notif)); + memset(&ld->fb_notif, 0, sizeof(ld->fb_notif)); ld->fb_notif.notifier_call = fb_notifier_callback; return fb_register_client(&ld->fb_notif); } |