提交 dd7ba3b8 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[PATCH] arch/i386/mach-voyager/voyager_cat.c: named initializers

This patch switches arch/i386/mach-voyager/voyager_cat.c to using named
initializers for struct resource.

Besides a fixing compile error in Greg's tree, it makes the code more
readable.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 6f91fe88
...@@ -106,9 +106,15 @@ voyager_module_t *voyager_cat_list; ...@@ -106,9 +106,15 @@ voyager_module_t *voyager_cat_list;
/* the I/O port assignments for the VIC and QIC */ /* the I/O port assignments for the VIC and QIC */
static struct resource vic_res = { static struct resource vic_res = {
"Voyager Interrupt Controller", 0xFC00, 0xFC6F }; .name = "Voyager Interrupt Controller",
.start = 0xFC00,
.end = 0xFC6F
};
static struct resource qic_res = { static struct resource qic_res = {
"Quad Interrupt Controller", 0xFC70, 0xFCFF }; .name = "Quad Interrupt Controller",
.start = 0xFC70,
.end = 0xFCFF
};
/* This function is used to pack a data bit stream inside a message. /* This function is used to pack a data bit stream inside a message.
* It writes num_bits of the data buffer in msg starting at start_bit. * It writes num_bits of the data buffer in msg starting at start_bit.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册