mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 14:25:44 +00:00
fix(scmi): use same type for message_id
The code declares different types of parameters. static bool message_id_is_supported(unsigned int message_id); static bool message_id_is_supported(size_t message_id) { ... } Signed-off-by: Schspa Shi <schspa@gmail.com> Change-Id: I7435d3b9309ea5fb5f8e3daa7173e09322184422
This commit is contained in:
parent
38dd6b61ae
commit
2355ebff6f
2 changed files with 3 additions and 3 deletions
drivers/scmi-msg
|
@ -361,7 +361,7 @@ static const scmi_msg_handler_t scmi_clock_handler_table[] = {
|
|||
[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)) &&
|
||||
(scmi_clock_handler_table[message_id] != NULL);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#pragma weak plat_scmi_pd_statistics
|
||||
#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)
|
||||
{
|
||||
|
@ -219,7 +219,7 @@ static const scmi_msg_handler_t scmi_pd_handler_table[] = {
|
|||
[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)) &&
|
||||
(scmi_pd_handler_table[message_id] != NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue