[openwrt/openwrt] realtek: pcs: rename SerDes mode field

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 23 09:56:37 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/1912f45b485d1dec0bc2781914f789bedd890c67

commit 1912f45b485d1dec0bc2781914f789bedd890c67
Author: Jonas Jelonek <jelonek.jonas at gmail.com>
AuthorDate: Wed Dec 17 21:33:17 2025 +0000

    realtek: pcs: rename SerDes mode field
    
    Rename the mode field in rtpcs_serdes from 'mode' to 'hw_mode' to make
    clear what it actually is, to avoid confusion with the phy_interface_t
    'mode' usually passed to functions.
    
    Signed-off-by: Jonas Jelonek <jelonek.jonas at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21184
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c b/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c
index 0a1d994da7..cdc18c0505 100644
--- a/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c
+++ b/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c
@@ -134,7 +134,7 @@ struct rtpcs_ctrl;
 struct rtpcs_serdes {
 	struct rtpcs_ctrl *ctrl;
 	u8 id;
-	enum rtpcs_sds_mode mode;
+	enum rtpcs_sds_mode hw_mode;
 
 	bool rx_pol_inv;
 	bool tx_pol_inv;




More information about the lede-commits mailing list