提交 4ca76513 编写于 作者: D Dmitri Vorobiev 提交者: Ralf Baechle

[MIPS] Malta: use Linux kernel style for structure initialization

This patch reformats the structure initialization code thus
making the latter look idiomatic.

No functional changes introduced.
Signed-off-by: NDmitri Vorobiev <dmitri.vorobiev@gmail.com>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 12323cac
...@@ -43,11 +43,36 @@ extern void kgdb_config(void); ...@@ -43,11 +43,36 @@ extern void kgdb_config(void);
#endif #endif
struct resource standard_io_resources[] = { struct resource standard_io_resources[] = {
{ .name = "dma1", .start = 0x00, .end = 0x1f, .flags = IORESOURCE_BUSY }, {
{ .name = "timer", .start = 0x40, .end = 0x5f, .flags = IORESOURCE_BUSY }, .name = "dma1",
{ .name = "keyboard", .start = 0x60, .end = 0x6f, .flags = IORESOURCE_BUSY }, .start = 0x00,
{ .name = "dma page reg", .start = 0x80, .end = 0x8f, .flags = IORESOURCE_BUSY }, .end = 0x1f,
{ .name = "dma2", .start = 0xc0, .end = 0xdf, .flags = IORESOURCE_BUSY }, .flags = IORESOURCE_BUSY
},
{
.name = "timer",
.start = 0x40,
.end = 0x5f,
.flags = IORESOURCE_BUSY
},
{
.name = "keyboard",
.start = 0x60,
.end = 0x6f,
.flags = IORESOURCE_BUSY
},
{
.name = "dma page reg",
.start = 0x80,
.end = 0x8f,
.flags = IORESOURCE_BUSY
},
{
.name = "dma2",
.start = 0xc0,
.end = 0xdf,
.flags = IORESOURCE_BUSY
},
}; };
const char *get_system_type(void) const char *get_system_type(void)
...@@ -171,15 +196,18 @@ void __init plat_mem_setup(void) ...@@ -171,15 +196,18 @@ void __init plat_mem_setup(void)
#ifdef CONFIG_VT #ifdef CONFIG_VT
#if defined(CONFIG_VGA_CONSOLE) #if defined(CONFIG_VGA_CONSOLE)
screen_info = (struct screen_info) { screen_info = (struct screen_info) {
0, 25, /* orig-x, orig-y */ .orig_x = 0,
0, /* unused */ .orig_y = 25,
0, /* orig-video-page */ .ext_mem_k = 0,
0, /* orig-video-mode */ .orig_video_page = 0,
80, /* orig-video-cols */ .orig_video_mode = 0,
0, 0, 0, /* ega_ax, ega_bx, ega_cx */ .orig_video_cols = 80,
25, /* orig-video-lines */ .unused2 = 0,
VIDEO_TYPE_VGAC, /* orig-video-isVGA */ .orig_video_ega_bx = 0,
16 /* orig-video-points */ .unused3 = 0,
.orig_video_lines = 25,
.orig_video_isVGA = VIDEO_TYPE_VGAC,
.orig_video_points = 16
}; };
#endif #endif
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册