realtek: eth: rename priv to ctrl (as in other drivers)

All Realtek drivers use ctrl (control) als the central driver
structure. Align that for the ethernet driver. Additionally
use the rteth prefix for the device independent structure
definition. Its current prefix "rtl838x_" is only confusing.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21476
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Markus Stockhausen 2026-01-09 20:28:41 +01:00 committed by Hauke Mehrtens
parent c7f585bfc3
commit a3003725e8
2 changed files with 277 additions and 277 deletions

View file

@ -418,7 +418,7 @@ inline u32 rtl931x_get_mac_tx_pause_sts(int p)
struct p_hdr;
struct dsa_tag;
struct rtl838x_eth_priv;
struct rteth_ctrl;
struct rteth_config {
int family_id;
@ -453,7 +453,7 @@ struct rteth_config {
void (*update_cntr)(int r, int work_done);
void (*create_tx_header)(struct p_hdr *h, unsigned int dest_port, int prio);
bool (*decode_tag)(struct p_hdr *h, struct dsa_tag *tag);
int (*init_mac)(struct rtl838x_eth_priv *priv);
int (*init_mac)(struct rteth_ctrl *ctrl);
const struct net_device_ops *netdev_ops;
};