Skip to content

Commit 31a066c

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 e6d1c7d commit 31a066c

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
@@ -32,7 +32,7 @@ struct eth_stm32_tx_buffer_header {
3232
bool used;
3333
};
3434

35-
static ETH_TxPacketConfig tx_config;
35+
static ETH_TxPacketConfigTypeDef tx_config;
3636

3737
static struct eth_stm32_rx_buffer_header dma_rx_buffer_header[ETH_RXBUFNB];
3838
static struct eth_stm32_tx_buffer_header dma_tx_buffer_header[ETH_TXBUFNB];
@@ -507,7 +507,7 @@ int eth_stm32_hal_init(const struct device *dev)
507507
k_sem_init(&dev_data->tx_int_sem, 0, K_SEM_MAX_LIMIT);
508508

509509
/* Tx config init: */
510-
memset(&tx_config, 0, sizeof(ETH_TxPacketConfig));
510+
memset(&tx_config, 0, sizeof(ETH_TxPacketConfigTypeDef));
511511
tx_config.Attributes = ETH_TX_PACKETS_FEATURES_CSUM |
512512
ETH_TX_PACKETS_FEATURES_CRCPAD;
513513
tx_config.ChecksumCtrl = IS_ENABLED(CONFIG_ETH_STM32_HW_CHECKSUM) ?

0 commit comments

Comments
 (0)