diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2006-06-26 03:27:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 12:58:32 -0400 |
commit | 9a17917671d407d37bf23a527aa55acca3cb4735 (patch) | |
tree | 1e78f6f82d913ee58c174776529589afe1d3b2a9 /drivers/video/fbmem.c | |
parent | a06630f3e7fb29f2524e1d7b009eb8b5a278ba23 (diff) |
[PATCH] Detaching fbcon: sdd sysfs class device entry for fbcon
In order for this feature to work, an interface will be needed. The most
appropriate is sysfs. However, the framebuffer console has no sysfs entry
yet. This will create a sysfs class device entry for fbcon under
/sys/class/graphics.
Add a class_device entry 'fbcon' under class 'graphics'. Console-specific
attributes which where previously under class/graphics/fb[x] are moved to
class/graphics/fbcon. These attributes, 'con_rotate' and 'con_rotate_all',
are also renamed to 'rotate' and 'rotate_all' respectively.
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 | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index e9af5e61018d..a2102a543ee7 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -1276,8 +1276,8 @@ static struct file_operations fb_fops = { | |||
1276 | #endif | 1276 | #endif |
1277 | }; | 1277 | }; |
1278 | 1278 | ||
1279 | static struct class *fb_class; | 1279 | struct class *fb_class; |
1280 | 1280 | EXPORT_SYMBOL(fb_class); | |
1281 | /** | 1281 | /** |
1282 | * register_framebuffer - registers a frame buffer device | 1282 | * register_framebuffer - registers a frame buffer device |
1283 | * @fb_info: frame buffer info structure | 1283 | * @fb_info: frame buffer info structure |
@@ -1489,27 +1489,6 @@ int fb_new_modelist(struct fb_info *info) | |||
1489 | return err; | 1489 | return err; |
1490 | } | 1490 | } |
1491 | 1491 | ||
1492 | /** | ||
1493 | * fb_con_duit - user<->fbcon passthrough | ||
1494 | * @info: struct fb_info | ||
1495 | * @event: notification event to be passed to fbcon | ||
1496 | * @data: private data | ||
1497 | * | ||
1498 | * DESCRIPTION | ||
1499 | * This function is an fbcon-user event passing channel | ||
1500 | * which bypasses fbdev. This is hopefully temporary | ||
1501 | * until a user interface for fbcon is created | ||
1502 | */ | ||
1503 | int fb_con_duit(struct fb_info *info, int event, void *data) | ||
1504 | { | ||
1505 | struct fb_event evnt; | ||
1506 | |||
1507 | evnt.info = info; | ||
1508 | evnt.data = data; | ||
1509 | |||
1510 | return blocking_notifier_call_chain(&fb_notifier_list, event, &evnt); | ||
1511 | } | ||
1512 | |||
1513 | static char *video_options[FB_MAX]; | 1492 | static char *video_options[FB_MAX]; |
1514 | static int ofonly; | 1493 | static int ofonly; |
1515 | 1494 | ||