]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: reuse RTMDIO_MAX_SMI_BUS define
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 2 May 2025 12:47:22 +0000 (08:47 -0400)
committerStijn Tintel <stijn@linux-ipv6.be>
Mon, 12 May 2025 13:09:19 +0000 (16:09 +0300)
commit10519db5798bee4ef6134e36854712db010b9d35
tree3cf56f9a0d75c7b7dc4bf773034c8f67504900fd
parent7f16a379f698fb7546811f76962875254b1e7293
realtek: reuse RTMDIO_MAX_SMI_BUS define

Although a dfine is used to set the maxiumum number of SMI
busses (=4) it is not used at all appropriate places in the code.
Replace hard coded constants with that define.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18402
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.c