mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements
The numeric constants in the switch statements are replaced by #defines added to the common ddr_spd.h header. This dramatically improves the readability of the switch statments. In addition, a few of the longer lines were cleaned up, and the DDR2 type for an SO-RDIMM module was added to the DDR2 switch statement. Signed-off-by:Kyle Moffett <Kyle.D.Moffett@boeing.com> Cc: Andy Fleming <afleming@gmail.com> Cc: Kim Phillips <kim.phillips@freescale.com> Acked-by:
York Sun <yorksun@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
Showing
- arch/powerpc/cpu/mpc8xxx/ddr/ddr2_dimm_params.c 13 additions, 10 deletionsarch/powerpc/cpu/mpc8xxx/ddr/ddr2_dimm_params.c
- arch/powerpc/cpu/mpc8xxx/ddr/ddr3_dimm_params.c 20 additions, 23 deletionsarch/powerpc/cpu/mpc8xxx/ddr/ddr3_dimm_params.c
- common/ddr_spd.c 1 addition, 1 deletioncommon/ddr_spd.c
- include/ddr_spd.h 19 additions, 9 deletionsinclude/ddr_spd.h
Please register or sign in to comment