diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2005-09-09 16:04:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:58 -0400 |
commit | 7726e9e10fc6e026ed2dc00e48f4a3ffc1254ad2 (patch) | |
tree | b6595002e6e9e653e395a472e3f8f5ed4b6e04f8 /drivers/video/fbmem.c | |
parent | cb2e87a65d6cd735eb06fa595bf90497af28c37b (diff) |
[PATCH] fbdev: Add fbset -a support
Add capability to fbdev to listen to the FB_ACTIVATE_ALL flag. If set, it
notifies fbcon that all consoles must be set to the current var.
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r-- | drivers/video/fbmem.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 4ff853fbe0be..a8eee79e117d 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -684,11 +684,13 @@ fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var) | |||
684 | 684 | ||
685 | if (!err && (flags & FBINFO_MISC_USEREVENT)) { | 685 | if (!err && (flags & FBINFO_MISC_USEREVENT)) { |
686 | struct fb_event event; | 686 | struct fb_event event; |
687 | int evnt = (var->activate & FB_ACTIVATE_ALL) ? | ||
688 | FB_EVENT_MODE_CHANGE_ALL : | ||
689 | FB_EVENT_MODE_CHANGE; | ||
687 | 690 | ||
688 | info->flags &= ~FBINFO_MISC_USEREVENT; | 691 | info->flags &= ~FBINFO_MISC_USEREVENT; |
689 | event.info = info; | 692 | event.info = info; |
690 | notifier_call_chain(&fb_notifier_list, | 693 | notifier_call_chain(&fb_notifier_list, evnt, |
691 | FB_EVENT_MODE_CHANGE, | ||
692 | &event); | 694 | &event); |
693 | } | 695 | } |
694 | } | 696 | } |