aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/console/fbcon_rotate.c
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2005-11-09 00:39:12 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:34 -0500
commitdbcbfe1ea41e404d960a06fa2faf7da568909f33 (patch)
tree757dccdb6e1c518392b7ee973641969b6130bf11 /drivers/video/console/fbcon_rotate.c
parent6cc50e1c5b57180fd37a31282000f43859b0fe73 (diff)
[PATCH] fbcon: Console Rotation - Add support for 90-degree console rotation
Add support for 90-degree (clockwise) rotation of the console. To activate, boot with: fbcon=rotate:1 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/console/fbcon_rotate.c')
-rw-r--r--drivers/video/console/fbcon_rotate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/console/fbcon_rotate.c b/drivers/video/console/fbcon_rotate.c
index 6a969318480f..9df009c8ab49 100644
--- a/drivers/video/console/fbcon_rotate.c
+++ b/drivers/video/console/fbcon_rotate.c
@@ -97,6 +97,12 @@ finished:
97void fbcon_set_rotate(struct fbcon_ops *ops) 97void fbcon_set_rotate(struct fbcon_ops *ops)
98{ 98{
99 ops->rotate_font = fbcon_rotate_font; 99 ops->rotate_font = fbcon_rotate_font;
100
101 switch(ops->rotate) {
102 case FB_ROTATE_CW:
103 fbcon_rotate_cw(ops);
104 break;
105 }
100} 106}
101EXPORT_SYMBOL(fbcon_set_rotate); 107EXPORT_SYMBOL(fbcon_set_rotate);
102 108