realtek: pcs: rename SerDes mode field
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 17 Dec 2025 21:33:17 +0000 (21:33 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Dec 2025 17:53:33 +0000 (18:53 +0100)
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@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21184
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c

index 0a1d994da7a108cc0894290f84a0bb23c71c1ea4..cdc18c050526bc8970dac198d3dc18716c7cee67 100644 (file)
@@ -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;