drivers: can: stm32: fix typo in phy dt assignment

To attach the correct phy, the instance must be givin instead of the id.

Signed-off-by: Max van Kessel <max_van_kessel@msn.com>
This commit is contained in:
Max van Kessel 2023-08-31 13:59:13 +02:00 committed by Anas Nashif
commit efaf4a6b34

View file

@ -1181,8 +1181,8 @@ static const struct can_stm32_config can_stm32_cfg_##inst = { \
}, \
.config_irq = config_can_##inst##_irq, \
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(inst), \
.phy = DEVICE_DT_GET_OR_NULL(DT_INST_PHANDLE(id, phys)), \
.max_bitrate = DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(id, 1000000), \
.phy = DEVICE_DT_GET_OR_NULL(DT_INST_PHANDLE(inst, phys)), \
.max_bitrate = DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(inst, 1000000), \
};
#define CAN_STM32_DATA_INST(inst) \