mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 18:29:45 +01:00
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:
parent
c7f585bfc3
commit
a3003725e8
2 changed files with 277 additions and 277 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue