From a2ee4a3968be30c28a4a30b69015f2a758f47415 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Thu, 17 Mar 2022 22:42:01 +0100 Subject: [PATCH] drivers: can: stm32h7: fix compilation Fix compilation of the STM32H7 CAN-FD driver front-end. Signed-off-by: Henrik Brix Andersen --- drivers/can/can_stm32h7.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/can/can_stm32h7.c b/drivers/can/can_stm32h7.c index cd9a47395ab..2de1ebdac85 100644 --- a/drivers/can/can_stm32h7.c +++ b/drivers/can/can_stm32h7.c @@ -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; }