Commit eab88c46 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] dnfb sparse struct init

Apollo Frame buffer: Fix C99 struct initializers (found by sparse)
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a2883694
...@@ -118,23 +118,23 @@ static struct fb_ops dn_fb_ops = { ...@@ -118,23 +118,23 @@ static struct fb_ops dn_fb_ops = {
}; };
struct fb_var_screeninfo dnfb_var __devinitdata = { struct fb_var_screeninfo dnfb_var __devinitdata = {
.xres 1280, .xres = 1280,
.yres 1024, .yres = 1024,
.xres_virtual 2048, .xres_virtual = 2048,
.yres_virtual 1024, .yres_virtual = 1024,
.bits_per_pixel 1, .bits_per_pixel = 1,
.height -1, .height = -1,
.width -1, .width = -1,
.vmode FB_VMODE_NONINTERLACED, .vmode = FB_VMODE_NONINTERLACED,
}; };
static struct fb_fix_screeninfo dnfb_fix __devinitdata = { static struct fb_fix_screeninfo dnfb_fix __devinitdata = {
.id "Apollo Mono", .id = "Apollo Mono",
.smem_start (FRAME_BUFFER_START + IO_BASE), .smem_start = (FRAME_BUFFER_START + IO_BASE),
.smem_len FRAME_BUFFER_LEN, .smem_len = FRAME_BUFFER_LEN,
.type FB_TYPE_PACKED_PIXELS, .type = FB_TYPE_PACKED_PIXELS,
.visual FB_VISUAL_MONO10, .visual = FB_VISUAL_MONO10,
.line_length 256, .line_length = 256,
}; };
static int dnfb_blank(int blank, struct fb_info *info) static int dnfb_blank(int blank, struct fb_info *info)
......
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