diff options
-rw-r--r-- | src/device/dram/ddr3.c | 6 | ||||
-rw-r--r-- | src/include/device/dram/ddr3.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c index 09a4e7ff9f..30dbe83753 100644 --- a/src/device/dram/ddr3.c +++ b/src/device/dram/ddr3.c @@ -27,13 +27,13 @@ * * @param type DIMM type. This is byte[3] of the SPD. */ -int spd_dimm_is_registered_ddr3(enum spd_dimm_type_ddr3 type) +bool spd_dimm_is_registered_ddr3(enum spd_dimm_type_ddr3 type) { if ((type == SPD_DDR3_DIMM_TYPE_RDIMM) | (type == SPD_DDR3_DIMM_TYPE_MINI_RDIMM) | (type == SPD_DDR3_DIMM_TYPE_72B_SO_RDIMM)) - return 1; + return true; - return 0; + return false; } /** diff --git a/src/include/device/dram/ddr3.h b/src/include/device/dram/ddr3.h index c4fd253efd..2f8766be8a 100644 --- a/src/include/device/dram/ddr3.h +++ b/src/include/device/dram/ddr3.h @@ -158,7 +158,7 @@ typedef u8 spd_ddr3_raw_data[SPD_SIZE_MAX_DDR3]; u16 spd_ddr3_calc_crc(u8 *spd, int len); u16 spd_ddr3_calc_unique_crc(u8 *spd, int len); int spd_decode_ddr3(struct dimm_attr_ddr3_st *dimm, spd_ddr3_raw_data spd_data); -int spd_dimm_is_registered_ddr3(enum spd_dimm_type_ddr3 type); +bool spd_dimm_is_registered_ddr3(enum spd_dimm_type_ddr3 type); void dram_print_spd_ddr3(const struct dimm_attr_ddr3_st *dimm); int spd_xmp_decode_ddr3(struct dimm_attr_ddr3_st *dimm, spd_ddr3_raw_data spd, |