Skip to content

Commit

Permalink
drivers: can: stm32h7: fix compilation
Browse files Browse the repository at this point in the history
Fix compilation of the STM32H7 CAN-FD driver front-end.

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen authored and nashif committed Mar 17, 2022
1 parent 62c7774 commit a2ee4a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/can/can_stm32h7.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a2ee4a3

Please sign in to comment.