Skip to content

Commit

Permalink
ipc4/helper: ipc4_get_comp_drv: Change parameter type to uint32_t
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
softwarecki committed Mar 21, 2024
1 parent 6c3bd47 commit 11d8a42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/include/sof/ipc/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/ipc/ipc4/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,12 +942,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);
Expand Down

0 comments on commit 11d8a42

Please sign in to comment.