drivers: can: stm32h7: fix compilation

Fix compilation of the STM32H7 CAN-FD driver front-end.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2022-03-17 22:42:01 +01:00 committed by Anas Nashif
commit a2ee4a3968

View file

@ -179,11 +179,11 @@ static int can_stm32h7_set_timing(const struct device *dev,
return can_mcan_set_timing(&cfg->mcan_cfg, timing, timing_data);
}
int mcux_stm32h7_get_max_bitrate(const struct device *dev, uint32_t *max_bitrate)
int can_stm32h7_get_max_bitrate(const struct device *dev, uint32_t *max_bitrate)
{
const struct mcux_stm32h7_config *cfg = dev->config;
const struct can_stm32h7_config *cfg = dev->config;
*max_bitrate = cfg->mcan.max_bitrate;
*max_bitrate = cfg->mcan_cfg.max_bitrate;
return 0;
}