Commit efaf4a6b authored by Max van Kessel's avatar Max van Kessel Committed by Anas Nashif
Browse files

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: default avatarMax van Kessel <max_van_kessel@msn.com>
parent a0263704
Loading
Loading
Loading
Loading
+2 −2
Changes for drivers/can/can_stm32_bxcan.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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) \