From: Jonas Jelonek Date: Thu, 5 Mar 2026 20:09:12 +0000 (+0000) Subject: realtek: pcs: give struct a shorter name X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35fa92c64540458e5e5cc3c885eac7ddaf261cb0;p=thirdparty%2Fopenwrt.git realtek: pcs: give struct a shorter name Shorten the name of the SerDes ops struct from 'rtpcs_serdes_ops' to 'rtpcs_sds_ops' to be consistent with other naming throughout the driver. Signed-off-by: Jonas Jelonek Link: https://github.com/openwrt/openwrt/pull/22885 Signed-off-by: Robert Marko --- diff --git a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c index d7092cfe052..2f67de3a999 100644 --- a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c +++ b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c @@ -162,7 +162,7 @@ enum rtpcs_chip_version { struct rtpcs_ctrl; struct rtpcs_serdes; -struct rtpcs_serdes_ops { +struct rtpcs_sds_ops { int (*read)(struct rtpcs_serdes *sds, int page, int regnum, int bithigh, int bitlow); int (*write)(struct rtpcs_serdes *sds, int page, int regnum, int bithigh, int bitlow, u16 value); @@ -199,7 +199,7 @@ struct rtpcs_sds_regs { struct rtpcs_serdes { struct rtpcs_ctrl *ctrl; - const struct rtpcs_serdes_ops *ops; + const struct rtpcs_sds_ops *ops; const struct rtpcs_sds_regs *regs; enum rtpcs_sds_mode hw_mode; u8 id; @@ -241,7 +241,7 @@ struct rtpcs_config { u8 serdes_count; const struct phylink_pcs_ops *pcs_ops; - const struct rtpcs_serdes_ops *sds_ops; + const struct rtpcs_sds_ops *sds_ops; const struct rtpcs_sds_regs *sds_regs; int (*init_serdes_common)(struct rtpcs_ctrl *ctrl); int (*setup_serdes)(struct rtpcs_serdes *sds, enum rtpcs_sds_mode hw_mode); @@ -4090,7 +4090,7 @@ static const struct phylink_pcs_ops rtpcs_838x_pcs_ops = { .pcs_get_state = rtpcs_pcs_get_state, }; -static const struct rtpcs_serdes_ops rtpcs_838x_sds_ops = { +static const struct rtpcs_sds_ops rtpcs_838x_sds_ops = { .read = rtpcs_generic_sds_op_read, .write = rtpcs_generic_sds_op_write, .set_autoneg = rtpcs_generic_sds_set_autoneg, @@ -4125,7 +4125,7 @@ static const struct phylink_pcs_ops rtpcs_839x_pcs_ops = { .pcs_get_state = rtpcs_pcs_get_state, }; -static const struct rtpcs_serdes_ops rtpcs_839x_sds_ops = { +static const struct rtpcs_sds_ops rtpcs_839x_sds_ops = { .read = rtpcs_generic_sds_op_read, .write = rtpcs_generic_sds_op_write, .set_autoneg = rtpcs_generic_sds_set_autoneg, @@ -4160,7 +4160,7 @@ static const struct phylink_pcs_ops rtpcs_930x_pcs_ops = { .pcs_get_state = rtpcs_pcs_get_state, }; -static const struct rtpcs_serdes_ops rtpcs_930x_sds_ops = { +static const struct rtpcs_sds_ops rtpcs_930x_sds_ops = { .read = rtpcs_930x_sds_op_read, .write = rtpcs_930x_sds_op_write, .xsg_write = rtpcs_930x_sds_op_xsg_write, @@ -4200,7 +4200,7 @@ static const struct phylink_pcs_ops rtpcs_931x_pcs_ops = { .pcs_get_state = rtpcs_pcs_get_state, }; -static const struct rtpcs_serdes_ops rtpcs_931x_sds_ops = { +static const struct rtpcs_sds_ops rtpcs_931x_sds_ops = { .read = rtpcs_generic_sds_op_read, .write = rtpcs_generic_sds_op_write, .xsg_write = rtpcs_931x_sds_op_xsg_write,