Date:2010-04-24 12:23:28 (10 years 4 months ago)
Author:Lars C.
Commit:59a4aee8e5b9fdfd2134717747fe41f8c9efe8c3
Message:Framebuffer notifier: Call notifier callbacks prior to blanking the screen

Files: drivers/video/fbmem.c (2 diffs)

Change Details

drivers/video/fbmem.c
10081008int
10091009fb_blank(struct fb_info *info, int blank)
10101010{
1011     int ret = -EINVAL;
1011     int ret = 0;
10121012
10131013     if (blank > FB_BLANK_POWERDOWN)
10141014         blank = FB_BLANK_POWERDOWN;
10151015
1016    if (info->fbops->fb_blank)
1016    if (info->fbops->fb_blank && blank == FB_BLANK_UNBLANK)
10171017         ret = info->fbops->fb_blank(blank, info);
10181018
10191019     if (!ret) {
...... 
10241024        fb_notifier_call_chain(FB_EVENT_BLANK, &event);
10251025    }
10261026
1027    if (info->fbops->fb_blank && blank != FB_BLANK_UNBLANK)
1028         ret = info->fbops->fb_blank(blank, info);
1029
1030
10271031     return ret;
10281032}
10291033

Archive Download the corresponding diff file



interactive