Merge "fix(scmi): use same type for message_id" into integration

This commit is contained in:
Joanna Farley 2022-03-29 17:01:48 +02:00 committed by TrustedFirmware Code Review
commit e24ce2c1c8
2 changed files with 3 additions and 3 deletions

View File

@ -361,7 +361,7 @@ static const scmi_msg_handler_t scmi_clock_handler_table[] = {
[SCMI_CLOCK_CONFIG_SET] = scmi_clock_config_set, [SCMI_CLOCK_CONFIG_SET] = scmi_clock_config_set,
}; };
static bool message_id_is_supported(size_t message_id) static bool message_id_is_supported(unsigned int message_id)
{ {
return (message_id < ARRAY_SIZE(scmi_clock_handler_table)) && return (message_id < ARRAY_SIZE(scmi_clock_handler_table)) &&
(scmi_clock_handler_table[message_id] != NULL); (scmi_clock_handler_table[message_id] != NULL);

View File

@ -19,7 +19,7 @@
#pragma weak plat_scmi_pd_statistics #pragma weak plat_scmi_pd_statistics
#pragma weak plat_scmi_pd_get_attributes #pragma weak plat_scmi_pd_get_attributes
static bool message_id_is_supported(size_t message_id); static bool message_id_is_supported(unsigned int message_id);
size_t plat_scmi_pd_count(unsigned int agent_id __unused) size_t plat_scmi_pd_count(unsigned int agent_id __unused)
{ {
@ -219,7 +219,7 @@ static const scmi_msg_handler_t scmi_pd_handler_table[] = {
[SCMI_PD_STATE_GET] = scmi_pd_state_get, [SCMI_PD_STATE_GET] = scmi_pd_state_get,
}; };
static bool message_id_is_supported(size_t message_id) static bool message_id_is_supported(unsigned int message_id)
{ {
return (message_id < ARRAY_SIZE(scmi_pd_handler_table)) && return (message_id < ARRAY_SIZE(scmi_pd_handler_table)) &&
(scmi_pd_handler_table[message_id] != NULL); (scmi_pd_handler_table[message_id] != NULL);