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 <adrian.warecki@intel.com>
This commit is contained in:
Adrian Warecki 2024-03-13 16:18:16 +01:00 committed by Kai Vehmanen
parent fc49de7e7d
commit eba6e2a437
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);