x86: rename all fields of mpc_lintsrc 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 <jaswinderrajput@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Jaswinder Singh Rajput and committed by
Ingo Molnar
b5ced7cd 5df82c7d

+16 -17
+7 -7
arch/x86/include/asm/mpspec_def.h
··· 140 #define MP_APIC_ALL 0xFF 141 142 struct mpc_lintsrc { 143 - unsigned char mpc_type; 144 - unsigned char mpc_irqtype; 145 - unsigned short mpc_irqflag; 146 - unsigned char mpc_srcbusid; 147 - unsigned char mpc_srcbusirq; 148 - unsigned char mpc_destapic; 149 - unsigned char mpc_destapiclint; 150 }; 151 152 #define MPC_OEM_SIGNATURE "_OEM"
··· 140 #define MP_APIC_ALL 0xFF 141 142 struct mpc_lintsrc { 143 + unsigned char type; 144 + unsigned char irqtype; 145 + unsigned short irqflag; 146 + unsigned char srcbusid; 147 + unsigned char srcbusirq; 148 + unsigned char destapic; 149 + unsigned char destapiclint; 150 }; 151 152 #define MPC_OEM_SIGNATURE "_OEM"
+9 -10
arch/x86/kernel/mpparse.c
··· 237 { 238 apic_printk(APIC_VERBOSE, "Lint: type %d, pol %d, trig %d, bus %02x," 239 " IRQ %02x, APIC ID %x, APIC LINT %02x\n", 240 - m->mpc_irqtype, m->mpc_irqflag & 3, 241 - (m->mpc_irqflag >> 2) & 3, m->mpc_srcbusid, 242 - m->mpc_srcbusirq, m->mpc_destapic, m->mpc_destapiclint); 243 } 244 245 /* ··· 559 560 construct_ioapic_table(mpc_default_type); 561 562 - lintsrc.mpc_type = MP_LINTSRC; 563 - lintsrc.mpc_irqflag = 0; /* conforming */ 564 - lintsrc.mpc_srcbusid = 0; 565 - lintsrc.mpc_srcbusirq = 0; 566 - lintsrc.mpc_destapic = MP_APIC_ALL; 567 for (i = 0; i < 2; i++) { 568 - lintsrc.mpc_irqtype = linttypes[i]; 569 - lintsrc.mpc_destapiclint = i; 570 MP_lintsrc_info(&lintsrc); 571 } 572 }
··· 237 { 238 apic_printk(APIC_VERBOSE, "Lint: type %d, pol %d, trig %d, bus %02x," 239 " IRQ %02x, APIC ID %x, APIC LINT %02x\n", 240 + m->irqtype, m->irqflag & 3, (m->irqflag >> 2) & 3, m->srcbusid, 241 + m->srcbusirq, m->destapic, m->destapiclint); 242 } 243 244 /* ··· 560 561 construct_ioapic_table(mpc_default_type); 562 563 + lintsrc.type = MP_LINTSRC; 564 + lintsrc.irqflag = 0; /* conforming */ 565 + lintsrc.srcbusid = 0; 566 + lintsrc.srcbusirq = 0; 567 + lintsrc.destapic = MP_APIC_ALL; 568 for (i = 0; i < 2; i++) { 569 + lintsrc.irqtype = linttypes[i]; 570 + lintsrc.destapiclint = i; 571 MP_lintsrc_info(&lintsrc); 572 } 573 }