x86: rename all fields of mpf_intel mpf_X to X
PATCH 2/2 x86: rename all fields of mpf_intel mpf_X to X
Impact: cleanup, solve 80 columns wrap problems
It would be cleaner to rename all the mpf->mpf_X fields to mpf->X - that alone would give 4 characters per usage site. (we already know that it's an 'mpf' 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 | 20 +++++++------- arch/x86/kernel/mpparse.c | 50 ++++++++++++++++++------------------ 2 files changed, 35 insertions(+), 35 deletions(-)
arch/x86/include/asm/mpspec_def.h +10 -10
@@ -26,16 +26,16 @@/* Intel MP Floating Pointer Structure */ struct mpf_intel { -char mpf_signature[4 ];/* "_MP_" */ -unsigned int mpf_physptr;/* Configuration table address */ -unsigned char mpf_length;/* Our length (paragraphs) */ -unsigned char mpf_specification;/* Specification version */ -unsigned char mpf_checksum;/* Checksum (makes sum 0) */ -unsigned char mpf_feature1;/* Standard or configuration ? */ -unsigned char mpf_feature2;/* Bit7 set for IMCR|PIC */ -unsigned char mpf_feature3;/* Unused (0) */ -unsigned char mpf_feature4;/* Unused (0) */ -unsigned char mpf_feature5;/* Unused (0) */ +char signature[4 ];/* "_MP_" */ +unsigned int physptr;/* Configuration table address */ +unsigned char length;/* Our length (paragraphs) */ +unsigned char specification;/* Specification version */ +unsigned char checksum;/* Checksum (makes sum 0) */ +unsigned char feature1;/* Standard or configuration ? */ +unsigned char feature2;/* Bit7 set for IMCR|PIC */ +unsigned char feature3;/* Unused (0) */ +unsigned char feature4;/* Unused (0) */ +unsigned char feature5;/* Unused (0) */ };#define MPC_SIGNATURE "PCMP"
arch/x86/kernel/mpparse.c +25 -25
130 lines not on this page · raw message
Signature · 1 line
1.5.6.6