]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: drop confusing macros 22885/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 11 Apr 2026 08:20:40 +0000 (08:20 +0000)
committerRobert Marko <robimarko@gmail.com>
Sat, 11 Apr 2026 10:14:04 +0000 (12:14 +0200)
commitfcbfa16ace9d601ad068c56c151aa7fa66a00540
treed593cf8b204c4b775e78d25a475e7f3bd931ef53
parent8887ce3e9f0dfddccd05611a2e3866af6ff2035c
realtek: pcs: drop confusing macros

Drop two confusing macros 'PHY_PAGE_2' and 'PHY_PAGE_4'. Though we
rather want to have meaningful names instead of magic values everywhere,
those two macros do it totally wrong. They still have the old naming
from times where SerDes was treated as a PHY, and they add no real
context to what page they are actually referring. Thus, replace them
with plain values in their two usages each until we have a better
overall solution.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22885
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c