Skip to contentSkip to conversation

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

PATCH New Adrian Bunk 1 participant 1 message Apr 10, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

This patch was already sent on:
- 7 Apr 2006

 arch/i386/mach-voyager/voyager_cat.c |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
arch/i386/mach-voyager/voyager_cat.c renamed from arch/i386/mach-voyager/voyager_cat.c.old +8 -2
@@ -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.