From 03fb6c4a52cb7e37bcc31b1ed032072026cf168e Mon Sep 17 00:00:00 2001 From: Antonino Daplas Date: Wed, 30 Mar 2005 16:47:09 -0800 Subject: [PATCH] fbcon: Save var rotate field in struct display Add the rotate field among parameters saved in struct display (per console structure). Some out-of-tree drivers are possibly using this field. From: Antonino Daplas Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/console/fbcon.c | 2 ++ drivers/video/console/fbcon.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 95c820032c897..a26a54ad69c89 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -703,6 +703,7 @@ static int var_to_display(struct display *disp, disp->green = var->green; disp->blue = var->blue; disp->transp = var->transp; + disp->rotate = var->rotate; disp->mode = fb_match_mode(var, &info->modelist); if (disp->mode == NULL) /* This should not happen */ @@ -726,6 +727,7 @@ static void display_to_var(struct fb_var_screeninfo *var, var->green = disp->green; var->blue = disp->blue; var->transp = disp->transp; + var->rotate = disp->rotate; } static const char *fbcon_startup(void) diff --git a/drivers/video/console/fbcon.h b/drivers/video/console/fbcon.h index 1c828b2ea2dbb..23422630bf5fd 100644 --- a/drivers/video/console/fbcon.h +++ b/drivers/video/console/fbcon.h @@ -41,6 +41,7 @@ struct display { u32 grayscale; u32 nonstd; u32 accel_flags; + u32 rotate; struct fb_bitfield red; struct fb_bitfield green; struct fb_bitfield blue; -- cgit 1.2.3-korg