device/dram/ddr3: Get rid of useless typedefs
These typedefs are not necessary. Remove them, and rename some elements to avoid any confusion with other DRAM generations, such as DDR4. Change-Id: Ibe40f33372358262c540e371f7866b06a4ac842a Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51895 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -98,7 +98,7 @@ u16 spd_ddr3_calc_unique_crc(u8 *spd, int len)
|
||||
* SPD_STATUS_INVALID_FIELD -- A field with an invalid value was
|
||||
* detected.
|
||||
*/
|
||||
int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
|
||||
int spd_decode_ddr3(struct dimm_attr_ddr3_st *dimm, spd_raw_data spd)
|
||||
{
|
||||
int ret;
|
||||
u16 crc, spd_crc;
|
||||
@@ -394,7 +394,7 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
|
||||
* SPD_STATUS_INVALID_FIELD -- A field with an invalid value was
|
||||
* detected.
|
||||
*/
|
||||
int spd_xmp_decode_ddr3(dimm_attr *dimm,
|
||||
int spd_xmp_decode_ddr3(struct dimm_attr_ddr3_st *dimm,
|
||||
spd_raw_data spd,
|
||||
enum ddr3_xmp_profile profile)
|
||||
{
|
||||
@@ -505,7 +505,7 @@ int spd_xmp_decode_ddr3(dimm_attr *dimm,
|
||||
*/
|
||||
enum cb_err spd_add_smbios17(const u8 channel, const u8 slot,
|
||||
const u16 selected_freq,
|
||||
const dimm_attr *info)
|
||||
const struct dimm_attr_ddr3_st *info)
|
||||
{
|
||||
struct memory_info *mem_info;
|
||||
struct dimm_info *dimm;
|
||||
@@ -597,7 +597,7 @@ static void print_ns(const char *msg, u32 val)
|
||||
*
|
||||
* @param dimm pointer to already decoded @ref dimm_attr structure
|
||||
*/
|
||||
void dram_print_spd_ddr3(const dimm_attr * dimm)
|
||||
void dram_print_spd_ddr3(const struct dimm_attr_ddr3_st *dimm)
|
||||
{
|
||||
u16 val16;
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user