drivers: can: mcan: fix bus recovery functions
Fix the signature of the CAN bus recovery functions in the Bosch M_CAN driver frontends. Fixes: #44345 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
6f910ae41e
commit
4e41d89c7b
6 changed files with 36 additions and 6 deletions
|
@ -721,8 +721,10 @@ int can_mcan_get_state(const struct can_mcan_config *cfg, enum can_state *state,
|
|||
}
|
||||
|
||||
#ifndef CONFIG_CAN_AUTO_BUS_OFF_RECOVERY
|
||||
int can_mcan_recover(struct can_mcan_reg *can, k_timeout_t timeout)
|
||||
int can_mcan_recover(const struct can_mcan_config *cfg, k_timeout_t timeout)
|
||||
{
|
||||
struct can_mcan_reg *can = cfg->can;
|
||||
|
||||
return can_leave_init_mode(can, timeout);
|
||||
}
|
||||
#endif /* CONFIG_CAN_AUTO_BUS_OFF_RECOVERY */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue