x86: rename all fields of mpc_intsrc mpc_X to X
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)
Signed-off-by Jaswinder Singh Rajput <[email protected]>
--- 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
@@ -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