]> Git Repo - linux.git/commitdiff
[PATCH] arch/i386/mach-voyager/voyager_cat.c: named initializers
authorAdrian Bunk <[email protected]>
Tue, 11 Apr 2006 05:52:49 +0000 (22:52 -0700)
committerLinus Torvalds <[email protected]>
Tue, 11 Apr 2006 13:18:30 +0000 (06:18 -0700)
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: Adrian Bunk <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/i386/mach-voyager/voyager_cat.c

index 23967fe658d3ff5be1981b93cfb547b86a9ec6e6..3039539de51e548a2a92eb83033278fc5daf38df 100644 (file)
@@ -106,9 +106,15 @@ voyager_module_t *voyager_cat_list;
 
 /* 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.
This page took 0.059345 seconds and 4 git commands to generate.