Skip to content

Commit a2ee4a3

Browse files
henrikbrixandersennashif
authored andcommitted
drivers: can: stm32h7: fix compilation
Fix compilation of the STM32H7 CAN-FD driver front-end. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 62c7774 commit a2ee4a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/can/can_stm32h7.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ static int can_stm32h7_set_timing(const struct device *dev,
179179
return can_mcan_set_timing(&cfg->mcan_cfg, timing, timing_data);
180180
}
181181

182-
int mcux_stm32h7_get_max_bitrate(const struct device *dev, uint32_t *max_bitrate)
182+
int can_stm32h7_get_max_bitrate(const struct device *dev, uint32_t *max_bitrate)
183183
{
184-
const struct mcux_stm32h7_config *cfg = dev->config;
184+
const struct can_stm32h7_config *cfg = dev->config;
185185

186-
*max_bitrate = cfg->mcan.max_bitrate;
186+
*max_bitrate = cfg->mcan_cfg.max_bitrate;
187187

188188
return 0;
189189
}

0 commit comments

Comments
 (0)