Skip to content

Commit 45c6ead

Browse files
jfischer-nonashif
authored andcommitted
drivers: eth_enc28j60: fix typo and build for half duplex
Fix typo and build for half duplex configuration. Signed-off-by: Johann Fischer <[email protected]>
1 parent fe06e42 commit 45c6ead

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/ethernet/Kconfig.enc28j60

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ config ETH_ENC28J60_RX_THREAD_PRIO
2929
Priority level for internal thread which is ran for incoming
3030
packet processing.
3131

32-
config ETH_EN28J60_TIMEOUT
32+
config ETH_ENC28J60_TIMEOUT
3333
int "IP buffer timeout"
3434
depends on ETH_ENC28J60
3535
default 100
@@ -45,7 +45,7 @@ config ETH_ENC28J60_0
4545
Include port 0 driver
4646

4747
if ETH_ENC28J60 && ETH_ENC28J60_0
48-
config ETH_EN28J60_0_FULL_DUPLEX
48+
config ETH_ENC28J60_0_FULL_DUPLEX
4949
bool "ENC28J60 full duplex"
5050
default y
5151
help

drivers/ethernet/eth_enc28j60.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,8 @@ static const struct eth_enc28j60_config eth_enc28j60_0_config = {
767767
.spi_cs_port = DT_MICROCHIP_ENC28J60_0_CS_GPIO_CONTROLLER,
768768
.spi_cs_pin = DT_MICROCHIP_ENC28J60_0_CS_GPIO_PIN,
769769
#endif /* CONFIG_ETH_ENC28J60_0_GPIO_SPI_CS */
770-
.full_duplex = CONFIG_ETH_EN28J60_0_FULL_DUPLEX,
771-
.timeout = CONFIG_ETH_EN28J60_TIMEOUT,
770+
.full_duplex = IS_ENABLED(CONFIG_ETH_ENC28J60_0_FULL_DUPLEX),
771+
.timeout = CONFIG_ETH_ENC28J60_TIMEOUT,
772772
};
773773

774774
NET_DEVICE_INIT(enc28j60_0, DT_MICROCHIP_ENC28J60_0_LABEL,

0 commit comments

Comments
 (0)