Commit aeda3320 authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds

[PATCH] radeonfb: screeninfo initialization cleanup

This patch changes the initialization of radeonfb_default_var to use named
initializers and avoids explicitly setting fields that are automatically
zeroed.
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b0ad358b
...@@ -7,10 +7,25 @@ ...@@ -7,10 +7,25 @@
#endif /* CONFIG_PPC_OF */ #endif /* CONFIG_PPC_OF */
static struct fb_var_screeninfo radeonfb_default_var = { static struct fb_var_screeninfo radeonfb_default_var = {
640, 480, 640, 480, 0, 0, 8, 0, .xres = 640,
{0, 6, 0}, {0, 6, 0}, {0, 6, 0}, {0, 0, 0}, .yres = 480,
0, 0, -1, -1, 0, 39721, 40, 24, 32, 11, 96, 2, .xres_virtual = 640,
0, FB_VMODE_NONINTERLACED .yres_virtual = 480,
.bits_per_pixel = 8,
.red = { 0, 6, 0 },
.green = { 0, 6, 0 },
.blue = { 0, 6, 0 },
.activate = FB_ACTIVATE_NOW,
.height = -1,
.width = -1,
.pixclock = 39721,
.left_margin = 40,
.right_margin = 24,
.upper_margin = 32,
.lower_margin = 11,
.hsync_len = 96,
.vsync_len = 2,
.vmode = FB_VMODE_NONINTERLACED
}; };
static char *radeon_get_mon_name(int type) static char *radeon_get_mon_name(int type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment