Messages in this thread Patch in this message | | | Date | Tue, 11 Apr 2006 00:28:31 +0200 | From | Adrian Bunk <> | Subject | [2.6 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 -mm, it makes the code better readable.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on: - 7 Apr 2006
arch/i386/mach-voyager/voyager_cat.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
--- linux-2.6.17-rc1-mm1-voyager/arch/i386/mach-voyager/voyager_cat.c.old 2006-04-07 00:18:01.000000000 +0200 +++ linux-2.6.17-rc1-mm1-voyager/arch/i386/mach-voyager/voyager_cat.c 2006-04-07 00:19:31.000000000 +0200 @@ -106,9 +106,15 @@ /* the I/O port assignments for the VIC and QIC */ static struct resource vic_res = { - "Voyager Interrupt Controller", 0xFC00, 0xFC6F }; + .name = "Voyager Interrupt Controller", + .start = 0xFC00, + .end = 0xFC6F +}; 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. * It writes num_bits of the data buffer in msg starting at start_bit. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |