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
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue