Skip to content

Commit a1609db

Browse files
committed
drivers: ethernet: stm32: cleanup deprecated ETH_TxPacketConfig typedef
The typedef ETH_TxPacketConfigTypeDef is used consistently in the driver. However, some instances of ETH_TxPacketConfig have not yet been replaced. On the STM32MP13 series, the ETH_TxPacketConfig typedef is no longer defined. This cleanup ensures compatibility and consistency. Signed-off-by: Arnaud Pouliquen <[email protected]>
1 parent fb2a9bb commit a1609db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ethernet/eth_stm32_hal_v2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static inline struct eth_stm32_tx_context *allocate_tx_context(struct net_pkt *p
238238
}
239239
}
240240

241-
static ETH_TxPacketConfig tx_config;
241+
static ETH_TxPacketConfigTypeDef tx_config;
242242

243243
static void setup_mac_filter(ETH_HandleTypeDef *heth)
244244
{
@@ -854,7 +854,7 @@ static int eth_init_api_v2(const struct device *dev)
854854
k_sem_init(&dev_data->tx_int_sem, 0, K_SEM_MAX_LIMIT);
855855

856856
/* Tx config init: */
857-
memset(&tx_config, 0, sizeof(ETH_TxPacketConfig));
857+
memset(&tx_config, 0, sizeof(ETH_TxPacketConfigTypeDef));
858858
tx_config.Attributes = ETH_TX_PACKETS_FEATURES_CSUM |
859859
ETH_TX_PACKETS_FEATURES_CRCPAD;
860860
tx_config.ChecksumCtrl = IS_ENABLED(CONFIG_ETH_STM32_HW_CHECKSUM) ?

0 commit comments

Comments
 (0)