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:
Henrik Brix Andersen 2022-03-30 11:36:00 +02:00 committed by Carles Cufí
commit 4e41d89c7b
6 changed files with 36 additions and 6 deletions

View file

@ -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 */