platform: Remove `_data` suffix from `cper_event` decode API
Rename `decode_pldm_platform_cper_event_data` to
`decode_pldm_platform_cper_event` as the API does not decode the CPER
data, it decodes the event message.
Change-Id: I0937f043e4d3836f20733f78ea3f5970da6585d5
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
diff --git a/src/dsp/platform.c b/src/dsp/platform.c
index 9439e12..6ef1061 100644
--- a/src/dsp/platform.c
+++ b/src/dsp/platform.c
@@ -2858,9 +2858,10 @@
}
LIBPLDM_ABI_TESTING
-int decode_pldm_platform_cper_event_data(
- const void *event_data, size_t event_data_length,
- struct pldm_platform_cper_event *cper_event, size_t cper_event_length)
+int decode_pldm_platform_cper_event(const void *event_data,
+ size_t event_data_length,
+ struct pldm_platform_cper_event *cper_event,
+ size_t cper_event_length)
{
struct pldm_msgbuf _buf;
struct pldm_msgbuf *buf = &_buf;