Skip to contentSkip to conversation

2.6.0-t3: struct C99 initialiser conversion

PATCH In review CaT 1 participant 1 message Aug 19, 2003 SuperH

lore
Share & tools
lore

CaT

author
#0 lore raw

PATCH 4/10 2.6.0-t3: struct C99 initialiser conversion

linux/arch/sh patch

Signature · 3 lines
"How can I not love the Americans? They helped me with a flat tire the
other day," he said.
	- http://tinyurl.com/h6fo
arch/sh/boards/adx/mach.c +32 -32
diff -aur linux.backup/arch/sh/boards/adx/mach.c linux/arch/sh/boards/adx/mach.c
@@ -24,41 +24,41 @@
  */
 
 struct sh_machine_vector mv_adx __initmv = {
-	mv_nr_irqs:		48,
+	.mv_nr_irqs		= 48,
 
-	mv_inb:			adx_inb,
-	mv_inw:			adx_inw,
-	mv_inl:			adx_inl,
-	mv_outb:		adx_outb,
-	mv_outw:		adx_outw,
-	mv_outl:		adx_outl,
-
-	mv_inb_p:		adx_inb_p,
-	mv_inw_p:		adx_inw,
-	mv_inl_p:		adx_inl,
-	mv_outb_p:		adx_outb_p,
-	mv_outw_p:		adx_outw,
-	mv_outl_p:		adx_outl,
-
-	mv_insb:		adx_insb,
-	mv_insw:		adx_insw,
-	mv_insl:		adx_insl,
-	mv_outsb:		adx_outsb,
-	mv_outsw:		adx_outsw,
-	mv_outsl:		adx_outsl,
-
-	mv_readb:		adx_readb,
-	mv_readw:		adx_readw,
-	mv_readl:		adx_readl,
-	mv_writeb:		adx_writeb,
-	mv_writew:		adx_writew,
-	mv_writel:		adx_writel,
+	.mv_inb			= adx_inb,
+	.mv_inw			= adx_inw,
+	.mv_inl			= adx_inl,
+	.mv_outb		= adx_outb,
+	.mv_outw		= adx_outw,
+	.mv_outl		= adx_outl,
+
+	.mv_inb_p		= adx_inb_p,
+	.mv_inw_p		= adx_inw,
+	.mv_inl_p		= adx_inl,
+	.mv_outb_p		= adx_outb_p,
+	.mv_outw_p		= adx_outw,
+	.mv_outl_p		= adx_outl,
+
+	.mv_insb		= adx_insb,
+	.mv_insw		= adx_insw,
+	.mv_insl		= adx_insl,
+	.mv_outsb		= adx_outsb,
+	.mv_outsw		= adx_outsw,
+	.mv_outsl		= adx_outsl,
+
+	.mv_readb		= adx_readb,
+	.mv_readw		= adx_readw,
+	.mv_readl		= adx_readl,
+	.mv_writeb		= adx_writeb,
+	.mv_writew		= adx_writew,
+	.mv_writel		= adx_writel,
 
-	mv_ioremap:		adx_ioremap,
-	mv_iounmap:		adx_iounmap,
+	.mv_ioremap		= adx_ioremap,
+	.mv_iounmap		= adx_iounmap,
 
-	mv_isa_port2addr:	adx_isa_port2addr,
+	.mv_isa_port2addr	= adx_isa_port2addr,
 
-	mv_init_irq:		init_adx_IRQ,
+	.mv_init_irq		= init_adx_IRQ,
 };
 ALIAS_MV(adx)
arch/sh/boards/bigsur/mach.c +34 -34

78 lines not on this page · raw message

arch/sh/boards/cat68701/mach.c +34 -34

78 lines not on this page · raw message

arch/sh/boards/cqreek/mach.c +34 -34

80 lines not on this page · raw message

arch/sh/boards/dmida/mach.c +32 -32

74 lines not on this page · raw message

arch/sh/boards/dreamcast/irq.c +7 -7
diff -aur linux.backup/arch/sh/boards/dreamcast/irq.c linux/arch/sh/boards/dreamcast/irq.c
@@ -110,13 +110,13 @@
 }
 
 struct hw_interrupt_type systemasic_int = {
-        typename:       "System ASIC",
-        startup:        startup_systemasic_irq,
-        shutdown:       shutdown_systemasic_irq,
-        enable:         enable_systemasic_irq,
-        disable:        disable_systemasic_irq,
-        ack:            ack_systemasic_irq,
-        end:            end_systemasic_irq,
+        .typename       = "System ASIC",
+        .startup        = startup_systemasic_irq,
+        .shutdown       = shutdown_systemasic_irq,
+        .enable         = enable_systemasic_irq,
+        .disable        = disable_systemasic_irq,
+        .ack            = ack_systemasic_irq,
+        .end            = end_systemasic_irq,
 };
 
 /*
arch/sh/boards/dreamcast/mach.c +32 -32

72 lines not on this page · raw message

arch/sh/boards/ec3104/irq.c +7 -7
diff -aur linux.backup/arch/sh/boards/ec3104/irq.c linux/arch/sh/boards/ec3104/irq.c
@@ -169,13 +169,13 @@
 }
 
 static struct hw_interrupt_type ec3104_int = {
-        typename:       "EC3104",
-        enable:         enable_ec3104_irq,
-        disable:        disable_ec3104_irq,
-        ack:            mask_and_ack_ec3104_irq,
-        end:            end_ec3104_irq,
-        startup:        startup_ec3104_irq,
-        shutdown:       shutdown_ec3104_irq,
+        .typename       = "EC3104",
+        .enable         = enable_ec3104_irq,
+        .disable        = disable_ec3104_irq,
+        .ack            = mask_and_ack_ec3104_irq,
+        .end            = end_ec3104_irq,
+        .startup        = startup_ec3104_irq,
+        .shutdown       = shutdown_ec3104_irq,
 };
 
 /* Yuck.  the _demux API is ugly */
arch/sh/boards/ec3104/mach.c +32 -32

74 lines not on this page · raw message

arch/sh/boards/harp/mach.c +33 -33

79 lines not on this page · raw message

arch/sh/boards/hp6xx/hp620/mach.c +32 -32

73 lines not on this page · raw message

arch/sh/boards/hp6xx/hp680/mach.c +32 -32

73 lines not on this page · raw message

arch/sh/boards/hp6xx/hp690/mach.c +32 -32

73 lines not on this page · raw message

arch/sh/boards/overdrive/mach.c +33 -33

79 lines not on this page · raw message

arch/sh/boards/saturn/irq.c +7 -7
diff -aur linux.backup/arch/sh/boards/saturn/irq.c linux/arch/sh/boards/saturn/irq.c
@@ -102,13 +102,13 @@
 }
 
 static struct hw_interrupt_type saturn_int = {
-	typename:	"Saturn",
-	enable:		enable_saturn_irq,
-	disable:	disable_saturn_irq,
-	ack:		mask_and_ack_saturn_irq,
-	end:		end_saturn_irq,
-	startup:	startup_saturn_irq,
-	shutdown:	shutdown_saturn_irq,
+	.typename	= "Saturn",
+	.enable		= enable_saturn_irq,
+	.disable	= disable_saturn_irq,
+	.ack		= mask_and_ack_saturn_irq,
+	.end		= end_saturn_irq,
+	.startup	= startup_saturn_irq,
+	.shutdown	= shutdown_saturn_irq,
 };
 
 int saturn_irq_demux(int irq_nr)
arch/sh/boards/saturn/mach.c +32 -32

73 lines not on this page · raw message

arch/sh/boards/se/770x/mach.c +35 -35

84 lines not on this page · raw message

arch/sh/boards/se/7751/mach.c +33 -33

77 lines not on this page · raw message

arch/sh/boards/sh2000/mach.c +31 -31

70 lines not on this page · raw message

arch/sh/boards/unknown/mach.c +33 -33

77 lines not on this page · raw message

arch/sh/cchips/hd6446x/hd64465/setup.c +7 -7
diff -aur linux.backup/arch/sh/cchips/hd6446x/hd64465/setup.c linux/arch/sh/cchips/hd6446x/hd64465/setup.c
@@ -89,13 +89,13 @@
 
 
 static struct hw_interrupt_type hd64465_irq_type = {
-	typename:	"HD64465-IRQ",
-	startup:	startup_hd64465_irq,
-	shutdown:	shutdown_hd64465_irq,
-	enable:		enable_hd64465_irq,
-	disable:	disable_hd64465_irq,
-	ack:		mask_and_ack_hd64465,
-	end:		end_hd64465_irq
+	.typename	= "HD64465-IRQ",
+	.startup	= startup_hd64465_irq,
+	.shutdown	= shutdown_hd64465_irq,
+	.enable		= enable_hd64465_irq,
+	.disable	= disable_hd64465_irq,
+	.ack		= mask_and_ack_hd64465,
+	.end		= end_hd64465_irq
 };