oem-ibm: Alias pldm_oem_ibm_fru_field_type members as PLDM_OEM_IBM_*
The oem-ibm FRU field type enumeration did not have a IBM prefix in
their enum values. This change is done to give more consistent names to
the enum constants.
The older version of these duplicate constants will be removed once a
tag containing the new members has been created.
Change-Id: Ibba743c24dc6f41b767e88e27b843a49f8731f5d
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 531d218..d972c75 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -32,6 +32,8 @@
remove old inconsistent enum members after backward compatibility cleanup is
done
+8. oem-ibm: Alias `pldm_oem_ibm_fru_field_type` members as `PLDM_OEM_IBM_*`
+
### Changed
1. base: Stabilise pldm_msg_hdr_correlate_response()
@@ -43,6 +45,11 @@
7. oem: meta: stabilise decode_oem_meta_file_io_req()
8. pdr: pldm_entity_association_tree_copy_root(): Document preconditions
+### Deprecated
+
+1. Deprecate `pldm_oem_ibm_fru_field_type` members that that are not prefixed
+ with `PLDM_OEM_IBM_`
+
### Fixed
1. libpldm: Rationalise the local and installed path of pldm.h
diff --git a/include/libpldm/oem/ibm/fru.h b/include/libpldm/oem/ibm/fru.h
index 32e7138..eb24eae 100644
--- a/include/libpldm/oem/ibm/fru.h
+++ b/include/libpldm/oem/ibm/fru.h
@@ -14,6 +14,11 @@
PLDM_OEM_FRU_FIELD_TYPE_RT = 0x02,
PLDM_OEM_FRU_FIELD_TYPE_PCIE_CONFIG_SPACE_DATA = 0xfd,
PLDM_OEM_FRU_FIELD_TYPE_LOCATION_CODE = 0xfe,
+
+ PLDM_OEM_IBM_FRU_FIELD_TYPE_IANA = 0x01,
+ PLDM_OEM_IBM_FRU_FIELD_TYPE_RT = 0x02,
+ PLDM_OEM_IBM_FRU_FIELD_TYPE_PCIE_CONFIG_SPACE_DATA = 0xfd,
+ PLDM_OEM_IBM_FRU_FIELD_TYPE_LOCATION_CODE = 0xfe,
};
#ifdef __cplusplus