From eba6e2a437dffaa6124368b6599554200b9fc9c6 Mon Sep 17 00:00:00 2001 From: Adrian Warecki Date: Wed, 13 Mar 2024 16:18:16 +0100 Subject: [PATCH] ipc4/helper: ipc4_get_comp_drv: Change parameter type to uint32_t All calls to the ipc4_get_comp_drv function pass the uint32_t value as a parameter, so the type of functions parameter was changed. Signed-off-by: Adrian Warecki --- src/include/sof/ipc/topology.h | 2 +- src/ipc/ipc4/helper.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/sof/ipc/topology.h b/src/include/sof/ipc/topology.h index 825898a09..5f851005f 100644 --- a/src/include/sof/ipc/topology.h +++ b/src/include/sof/ipc/topology.h @@ -47,7 +47,7 @@ typedef uint32_t ipc_comp; #define ipc_from_pipe_connect(x) ((struct ipc4_module_bind_unbind *)x) struct ipc_comp_dev; -const struct comp_driver *ipc4_get_comp_drv(int module_id); +const struct comp_driver *ipc4_get_comp_drv(uint32_t module_id); struct comp_dev *ipc4_get_comp_dev(uint32_t comp_id); int ipc4_add_comp_dev(struct comp_dev *dev); const struct comp_driver *ipc4_get_drv(const uint8_t *uuid); diff --git a/src/ipc/ipc4/helper.c b/src/ipc/ipc4/helper.c index 666df9bde..4fa3821d9 100644 --- a/src/ipc/ipc4/helper.c +++ b/src/ipc/ipc4/helper.c @@ -945,12 +945,12 @@ static const struct comp_driver *ipc4_library_get_drv(int module_id) } #endif -const struct comp_driver *ipc4_get_comp_drv(int module_id) +const struct comp_driver *ipc4_get_comp_drv(uint32_t module_id) { struct sof_man_fw_desc *desc = NULL; const struct comp_driver *drv; struct sof_man_module *mod; - int entry_index; + uint32_t entry_index; #if CONFIG_LIBRARY return ipc4_library_get_drv(module_id);