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:
parent
62c7774014
commit
a2ee4a3968
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue