From: Markus Stockhausen Date: Tue, 14 Apr 2026 19:40:23 +0000 (+0200) Subject: realtek: dsa: rename header file X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;p=thirdparty%2Fopenwrt.git realtek: dsa: rename header file The rtl838x.h header is needed for all targets and not only RTL838x specific. Rename it to rtl-otto.h to make clear that this is a generic include. Signed-off-by: Markus Stockhausen Link: https://github.com/openwrt/openwrt/pull/22931 Signed-off-by: Robert Marko --- diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/common.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/common.c index 9e64b6d9202..e0d3a59e6c9 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/common.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/common.c @@ -14,7 +14,7 @@ #include #include -#include "rtl838x.h" +#include "rtl-otto.h" struct phylink_pcs *rtpcs_create(struct device *dev, struct device_node *np, int port); diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/debugfs.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/debugfs.c index ec4214606f3..4c4bd64d551 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/debugfs.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/debugfs.c @@ -4,7 +4,7 @@ #include #include -#include "rtl838x.h" +#include "rtl-otto.h" #define RTL838X_DRIVER_NAME "rtl838x" diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/dsa.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/dsa.c index 000ddd2e713..c41172a4eda 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/dsa.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/dsa.c @@ -5,7 +5,7 @@ #include #include -#include "rtl838x.h" +#include "rtl-otto.h" static const u8 ipv4_ll_mcast_addr_base[ETH_ALEN] = { 0x01, 0x00, 0x5e, 0x00, 0x00, 0x00 diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/qos.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/qos.c index 343110b9515..ced17412435 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/qos.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/qos.c @@ -4,7 +4,7 @@ #include #include -#include "rtl838x.h" +#include "rtl-otto.h" enum scheduler_type { WEIGHTED_FAIR_QUEUE = 0, diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.h b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl-otto.h similarity index 100% rename from target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.h rename to target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl-otto.h diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.c index 512326ae924..98e191fca87 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.c @@ -5,7 +5,7 @@ #include #include -#include "rtl838x.h" +#include "rtl-otto.h" #define RTL838X_VLAN_PORT_TAG_STS_UNTAG 0x0 #define RTL838X_VLAN_PORT_TAG_STS_TAGGED 0x1 diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl839x.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl839x.c index 3bf5c9e5a65..56b72f62f48 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl839x.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl839x.c @@ -3,7 +3,7 @@ #include #include -#include "rtl838x.h" +#include "rtl-otto.h" #define RTL839X_VLAN_PORT_TAG_STS_UNTAG 0x0 #define RTL839X_VLAN_PORT_TAG_STS_TAGGED 0x1 diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl930x.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl930x.c index a9c36a3d782..4942e873c09 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl930x.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl930x.c @@ -4,7 +4,7 @@ #include #include -#include "rtl838x.h" +#include "rtl-otto.h" #define RTL930X_VLAN_PORT_TAG_STS_INTERNAL 0x0 #define RTL930X_VLAN_PORT_TAG_STS_UNTAG 0x1 diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl931x.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl931x.c index db184dd4ad9..b3e95a6be1f 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl931x.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl931x.c @@ -3,7 +3,7 @@ #include #include -#include "rtl838x.h" +#include "rtl-otto.h" #define RTL931X_VLAN_PORT_TAG_STS_INTERNAL 0x0 #define RTL931X_VLAN_PORT_TAG_STS_UNTAG 0x1 diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/tc.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/tc.c index 2128787db08..fbec20a8c5d 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/tc.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/tc.c @@ -8,7 +8,7 @@ #include #include -#include "rtl838x.h" +#include "rtl-otto.h" /* Parse the flow rule for the matching conditions */ static int rtl83xx_parse_flow_rule(struct rtl838x_switch_priv *priv,