]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: mdio: rename iterator to "addr"
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 12 Jan 2026 16:33:19 +0000 (17:33 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 21 Jan 2026 22:32:54 +0000 (23:32 +0100)
commit3722b006a69cfa9545844739258f67e92fd4d823
treeb3a492983ee329435fcbb27b96ea510050fb30a3
parent631e066bc3b58ed40ebdec1fdc8d2349c8074efe
realtek: mdio: rename iterator to "addr"

During initialization the mdio driver registers phys with the
iterator "pn". To make clear that it is a phy address rename it
to "addr".

While we are here improve the upper bound check of the maximum
possible address. This is the family specific cpu port and not
the generic upper bound constant for all devices.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21438
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c