Skip to contentSkip to conversation

use named structure member initializers for pci_ops structures

trivial In review Nathan Lynch 2 participants 13 messages Aug 9, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

This series converts all pci_ops structures in arch/powerpc to named member initializers, in accordance with prevailing practice in the kernel. No behavioral or otherwise stylistic changes.

 arch/powerpc/kernel/pci_32.c             |    4 ++--
 arch/powerpc/kernel/rtas_pci.c           |    4 ++--
 arch/powerpc/platforms/52xx/efika.c      |    4 ++--
 arch/powerpc/platforms/celleb/pci.c      |    4 ++--
 arch/powerpc/platforms/celleb/scc_epci.c |    4 ++--
 arch/powerpc/platforms/chrp/pci.c        |    8 ++++----
 arch/powerpc/platforms/maple/pci.c       |   12 ++++++------
 arch/powerpc/platforms/pasemi/pci.c      |    4 ++--
 arch/powerpc/platforms/powermac/pci.c    |   16 ++++++++--------
 arch/powerpc/sysdev/indirect_pci.c       |    4 ++--
 arch/powerpc/sysdev/tsi108_pci.c         |    4 ++--
 11 files changed, 34 insertions(+), 34 deletions(-)
#1 lore raw

PATCH 1/11 rtas_pci_ops: use named structure member initializers

---
 arch/powerpc/kernel/rtas_pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/kernel/rtas_pci.c +2 -2
index a5de621..21f14e5 100644
@@ -171,8 +171,8 @@ static int rtas_pci_write_config(struct pci_bus *bus,
 }
 
 struct pci_ops rtas_pci_ops = {
-	rtas_pci_read_config,
-	rtas_pci_write_config
+	.read = rtas_pci_read_config,
+	.write = rtas_pci_write_config,
 };
 
 int is_python(struct device_node *dev)
Signature · 1 line
1.5.2.4
#2 lore raw

PATCH 2/11 celleb_fake_pci_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/platforms/celleb/pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/celleb/pci.c +2 -2
index e9ac19c..de8038b 100644
@@ -242,8 +242,8 @@ static int celleb_fake_pci_write_config(struct pci_bus *bus,
 }
 
 static struct pci_ops celleb_fake_pci_ops = {
-	celleb_fake_pci_read_config,
-	celleb_fake_pci_write_config
+	.read = celleb_fake_pci_read_config,
+	.write = celleb_fake_pci_write_config,
 };
 
 static inline void celleb_setup_pci_base_addrs(struct pci_controller *hose,
Signature · 1 line
1.5.2.4
#3 lore raw

PATCH 3/11 celleb_epci_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/platforms/celleb/scc_epci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/celleb/scc_epci.c +2 -2
index c4b0110..7506acc 100644
@@ -278,8 +278,8 @@ static int celleb_epci_write_config(struct pci_bus *bus,
 }
 
 struct pci_ops celleb_epci_ops = {
-	celleb_epci_read_config,
-	celleb_epci_write_config,
+	.read = celleb_epci_read_config,
+	.write = celleb_epci_write_config,
 };
 
 /* to be moved in FW */
Signature · 1 line
1.5.2.4
#4 lore raw

PATCH 4/11 maple pci_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/platforms/maple/pci.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
arch/powerpc/platforms/maple/pci.c +6 -6
index 2542403..6247f94 100644
@@ -185,8 +185,8 @@ static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn,
 
 static struct pci_ops u3_agp_pci_ops =
 {
-	u3_agp_read_config,
-	u3_agp_write_config
+	.read = u3_agp_read_config,
+	.write = u3_agp_write_config,
 };
 
 static unsigned long u3_ht_cfa0(u8 devfn, u8 off)
@@ -284,8 +284,8 @@ static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn,
 
 static struct pci_ops u3_ht_pci_ops =
 {
-	u3_ht_read_config,
-	u3_ht_write_config
+	.read = u3_ht_read_config,
+	.write = u3_ht_write_config,
 };
 
 static unsigned int u4_pcie_cfa0(unsigned int devfn, unsigned int off)
@@ -392,8 +392,8 @@ static int u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn,
 
 static struct pci_ops u4_pcie_pci_ops =
 {
-        u4_pcie_read_config,
-        u4_pcie_write_config
+	.read = u4_pcie_read_config,
+	.write = u4_pcie_write_config,
 };
 
 static void __init setup_u3_agp(struct pci_controller* hose)
Signature · 1 line
1.5.2.4
#5 lore raw

PATCH 5/11 pa_pxp_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/platforms/pasemi/pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/pasemi/pci.c +2 -2
index ab1f5f6..882b571 100644
@@ -122,8 +122,8 @@ static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn,
 }
 
 static struct pci_ops pa_pxp_ops = {
-	pa_pxp_read_config,
-	pa_pxp_write_config,
+	.read = pa_pxp_read_config,
+	.write = pa_pxp_write_config,
 };
 
 static void __init setup_pa_pxp(struct pci_controller *hose)
Signature · 1 line
1.5.2.4
#7 lore raw

PATCH 6/11 powermac pci_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/platforms/powermac/pci.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
arch/powerpc/platforms/powermac/pci.c +8 -8
index 92586db..69d67ff 100644
@@ -225,8 +225,8 @@ static int macrisc_write_config(struct pci_bus *bus, unsigned int devfn,
 
 static struct pci_ops macrisc_pci_ops =
 {
-	macrisc_read_config,
-	macrisc_write_config
+	.read = macrisc_read_config,
+	.write = macrisc_write_config,
 };
 
 #ifdef CONFIG_PPC32
@@ -280,8 +280,8 @@ chaos_write_config(struct pci_bus *bus, unsigned int devfn, int offset,
 
 static struct pci_ops chaos_pci_ops =
 {
-	chaos_read_config,
-	chaos_write_config
+	.read = chaos_read_config,
+	.write = chaos_write_config,
 };
 
 static void __init setup_chaos(struct pci_controller *hose,
@@ -456,8 +456,8 @@ static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn,
 
 static struct pci_ops u3_ht_pci_ops =
 {
-	u3_ht_read_config,
-	u3_ht_write_config
+	.read = u3_ht_read_config,
+	.write = u3_ht_write_config,
 };
 
 #define U4_PCIE_CFA0(devfn, off)	\
@@ -561,8 +561,8 @@ static int u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn,
 
 static struct pci_ops u4_pcie_pci_ops =
 {
-	u4_pcie_read_config,
-	u4_pcie_write_config
+	.read = u4_pcie_read_config,
+	.write = u4_pcie_write_config,
 };
 
 #endif /* CONFIG_PPC64 */
Signature · 1 line
1.5.2.4
#8 lore raw

PATCH 7/11 null_pci_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/kernel/pci_32.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/kernel/pci_32.c +2 -2
index 04a3109..0e2bee4 100644
@@ -1457,8 +1457,8 @@ null_write_config(struct pci_bus *bus, unsigned int devfn, int offset,
 
 static struct pci_ops null_pci_ops =
 {
-	null_read_config,
-	null_write_config
+	.read = null_read_config,
+	.write = null_write_config,
 };
 
 /*
Signature · 1 line
1.5.2.4
#9 lore raw

PATCH 8/11 efika rtas_pci_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/platforms/52xx/efika.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/52xx/efika.c +2 -2
index 4be6e7a..4263158 100644
@@ -78,8 +78,8 @@ static int rtas_write_config(struct pci_bus *bus, unsigned int devfn,
 }
 
 static struct pci_ops rtas_pci_ops = {
-	rtas_read_config,
-	rtas_write_config
+	.read = rtas_read_config,
+	.write = rtas_write_config,
 };
 
 
Signature · 1 line
1.5.2.4
#10 lore raw

PATCH 9/11 chrp pci_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/platforms/chrp/pci.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
arch/powerpc/platforms/chrp/pci.c +4 -4
index 28d1647..0c6dba9 100644
@@ -86,8 +86,8 @@ int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off,
 
 static struct pci_ops gg2_pci_ops =
 {
-	gg2_read_config,
-	gg2_write_config
+	.read = gg2_read_config,
+	.write = gg2_write_config,
 };
 
 /*
@@ -124,8 +124,8 @@ int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset,
 
 static struct pci_ops rtas_pci_ops =
 {
-	rtas_read_config,
-	rtas_write_config
+	.read = rtas_read_config,
+	.write = rtas_write_config,
 };
 
 volatile struct Hydra __iomem *Hydra = NULL;
Signature · 1 line
1.5.2.4
#11 lore raw

PATCH 10/11 indirect_pci_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/sysdev/indirect_pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/sysdev/indirect_pci.c +2 -2
index 5294560..b5d0682 100644
@@ -144,8 +144,8 @@ indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset,
 
 static struct pci_ops indirect_pci_ops =
 {
-	indirect_read_config,
-	indirect_write_config
+	.read = indirect_read_config,
+	.write = indirect_write_config,
 };
 
 void __init
Signature · 1 line
1.5.2.4
#12 lore raw

PATCH 11/11 tsi108_direct_pci_ops: use named structure member initializers

In reply to Nathan Lynch
---
 arch/powerpc/sysdev/tsi108_pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/sysdev/tsi108_pci.c +2 -2
index 90db8a7..cf0bfbd 100644
@@ -193,8 +193,8 @@ void tsi108_clear_pci_cfg_error(void)
 }
 
 static struct pci_ops tsi108_direct_pci_ops = {
-	tsi108_direct_read_config,
-	tsi108_direct_write_config
+	.read = tsi108_direct_read_config,
+	.write = tsi108_direct_write_config,
 };
 
 int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary)
Signature · 1 line
1.5.2.4