Skip to contentSkip to conversation

x86: rename all fields of mpc_intsrc mpc_X to X

PATCH In review Jaswinder Singh Rajput 1 participant 1 message Jan 4, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 3/7 x86: rename all fields of mpc_intsrc mpc_X to X

Impact: cleanup, solve 80 columns wrap problems

It would be cleaner to rename all the mpc->mpc_X fields to mpc->X - that alone would give 4 characters per usage site. (we already know that it's an 'mpc' entity -
no need to duplicate that in the field too)

---
 arch/x86/include/asm/mpspec_def.h |   14 +++---
 arch/x86/kernel/mpparse.c         |   79 ++++++++++++++++++-------------------
 2 files changed, 46 insertions(+), 47 deletions(-)
arch/x86/include/asm/mpspec_def.h +7 -7
index c8bbb32..e24e1bc 100644
@@ -117,13 +117,13 @@ struct mpc_ioapic {
 };
 
 struct mpc_intsrc {
-	unsigned char mpc_type;
-	unsigned char mpc_irqtype;
-	unsigned short mpc_irqflag;
-	unsigned char mpc_srcbus;
-	unsigned char mpc_srcbusirq;
-	unsigned char mpc_dstapic;
-	unsigned char mpc_dstirq;
+	unsigned char type;
+	unsigned char irqtype;
+	unsigned short irqflag;
+	unsigned char srcbus;
+	unsigned char srcbusirq;
+	unsigned char dstapic;
+	unsigned char dstirq;
 };
 
 enum mp_irq_source_types {
arch/x86/kernel/mpparse.c +39 -40

141 lines not on this page · raw message

Signature · 1 line
1.5.5.1