realtek: rename rtl838x_reg structure

Rename the SoC-specific rtl838x_reg structure in the Ethernet
driver to avoid confusion with the structure of the same name
in the DSA driver. New name is: rtl838x_eth_reg

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
This commit is contained in:
Birger Koblitz 2022-01-01 13:52:04 +01:00 committed by Daniel Golle
parent 2f51e567ff
commit 9024202052
2 changed files with 6 additions and 6 deletions

View File

@ -182,7 +182,7 @@ struct rtl838x_eth_priv {
struct phylink_config phylink_config;
u16 id;
u16 family_id;
const struct rtl838x_reg *r;
const struct rtl838x_eth_reg *r;
u8 cpu_port;
u32 lastEvent;
u16 rxrings;
@ -515,7 +515,7 @@ static irqreturn_t rtl93xx_net_irq(int irq, void *dev_id)
return IRQ_HANDLED;
}
static const struct rtl838x_reg rtl838x_reg = {
static const struct rtl838x_eth_reg rtl838x_reg = {
.net_irq = rtl83xx_net_irq,
.mac_port_ctrl = rtl838x_mac_port_ctrl,
.dma_if_intr_sts = RTL838X_DMA_IF_INTR_STS,
@ -540,7 +540,7 @@ static const struct rtl838x_reg rtl838x_reg = {
.decode_tag = rtl838x_decode_tag,
};
static const struct rtl838x_reg rtl839x_reg = {
static const struct rtl838x_eth_reg rtl839x_reg = {
.net_irq = rtl83xx_net_irq,
.mac_port_ctrl = rtl839x_mac_port_ctrl,
.dma_if_intr_sts = RTL839X_DMA_IF_INTR_STS,
@ -565,7 +565,7 @@ static const struct rtl838x_reg rtl839x_reg = {
.decode_tag = rtl839x_decode_tag,
};
static const struct rtl838x_reg rtl930x_reg = {
static const struct rtl838x_eth_reg rtl930x_reg = {
.net_irq = rtl93xx_net_irq,
.mac_port_ctrl = rtl930x_mac_port_ctrl,
.dma_if_intr_rx_runout_sts = RTL930X_DMA_IF_INTR_RX_RUNOUT_STS,
@ -596,7 +596,7 @@ static const struct rtl838x_reg rtl930x_reg = {
.decode_tag = rtl930x_decode_tag,
};
static const struct rtl838x_reg rtl931x_reg = {
static const struct rtl838x_eth_reg rtl931x_reg = {
.net_irq = rtl93xx_net_irq,
.mac_port_ctrl = rtl931x_mac_port_ctrl,
.dma_if_intr_rx_runout_sts = RTL931X_DMA_IF_INTR_RX_RUNOUT_STS,

View File

@ -383,7 +383,7 @@ inline u32 rtl931x_get_mac_tx_pause_sts(int p)
struct p_hdr;
struct dsa_tag;
struct rtl838x_reg {
struct rtl838x_eth_reg {
irqreturn_t (*net_irq)(int irq, void *dev_id);
int (*mac_port_ctrl)(int port);
int dma_if_intr_sts;