Skip to content

Commit 11d8a42

Browse files
committed
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>
1 parent 6c3bd47 commit 11d8a42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/include/sof/ipc/topology.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ typedef uint32_t ipc_comp;
4747
#define ipc_from_pipe_connect(x) ((struct ipc4_module_bind_unbind *)x)
4848

4949
struct ipc_comp_dev;
50-
const struct comp_driver *ipc4_get_comp_drv(int module_id);
50+
const struct comp_driver *ipc4_get_comp_drv(uint32_t module_id);
5151
struct comp_dev *ipc4_get_comp_dev(uint32_t comp_id);
5252
int ipc4_add_comp_dev(struct comp_dev *dev);
5353
const struct comp_driver *ipc4_get_drv(const uint8_t *uuid);

src/ipc/ipc4/helper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,12 +942,12 @@ static const struct comp_driver *ipc4_library_get_drv(int module_id)
942942
}
943943
#endif
944944

945-
const struct comp_driver *ipc4_get_comp_drv(int module_id)
945+
const struct comp_driver *ipc4_get_comp_drv(uint32_t module_id)
946946
{
947947
struct sof_man_fw_desc *desc = NULL;
948948
const struct comp_driver *drv;
949949
struct sof_man_module *mod;
950-
int entry_index;
950+
uint32_t entry_index;
951951

952952
#if CONFIG_LIBRARY
953953
return ipc4_library_get_drv(module_id);

0 commit comments

Comments
 (0)