Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215179
b: refs/heads/master
c: cadb792
h: refs/heads/master
i:
  215177: f1fc11f
  215175: 6c73f6a
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Oct 16, 2010
1 parent c1d7d8e commit c8272ab
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ee17ae68c0f1e281a432a4318fa2511e25c9492
refs/heads/master: cadb7924b10b2a3117dafe14d6d6d28035ec4ddb
6 changes: 3 additions & 3 deletions trunk/drivers/net/stmmac/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ struct mii_regs {
};

struct mac_device_info {
struct stmmac_ops *mac;
struct stmmac_desc_ops *desc;
struct stmmac_dma_ops *dma;
const struct stmmac_ops *mac;
const struct stmmac_desc_ops *desc;
const struct stmmac_dma_ops *dma;
struct mii_regs mii; /* MII register Addresses */
struct mac_link link;
};
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/stmmac/dwmac100.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ enum ttc_control {
#define DMA_MISSED_FRAME_OVE_M 0x00010000 /* Missed Frame Overflow */
#define DMA_MISSED_FRAME_M_CNTR 0x0000ffff /* Missed Frame Couinter */

extern struct stmmac_dma_ops dwmac100_dma_ops;
extern const struct stmmac_dma_ops dwmac100_dma_ops;
2 changes: 1 addition & 1 deletion trunk/drivers/net/stmmac/dwmac1000.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,4 @@ enum rtc_control {
#define GMAC_MMC_TX_INTR 0x108
#define GMAC_MMC_RX_CSUM_OFFLOAD 0x208

extern struct stmmac_dma_ops dwmac1000_dma_ops;
extern const struct stmmac_dma_ops dwmac1000_dma_ops;
2 changes: 1 addition & 1 deletion trunk/drivers/net/stmmac/dwmac1000_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ static void dwmac1000_irq_status(void __iomem *ioaddr)
}
}

struct stmmac_ops dwmac1000_ops = {
static const struct stmmac_ops dwmac1000_ops = {
.core_init = dwmac1000_core_init,
.rx_coe = dwmac1000_rx_coe_supported,
.dump_regs = dwmac1000_dump_regs,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/stmmac/dwmac1000_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static void dwmac1000_dump_dma_regs(void __iomem *ioaddr)
}
}

struct stmmac_dma_ops dwmac1000_dma_ops = {
const struct stmmac_dma_ops dwmac1000_dma_ops = {
.init = dwmac1000_dma_init,
.dump_regs = dwmac1000_dump_dma_regs,
.dma_mode = dwmac1000_dma_operation_mode,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/stmmac/dwmac100_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static void dwmac100_pmt(void __iomem *ioaddr, unsigned long mode)
return;
}

struct stmmac_ops dwmac100_ops = {
static const struct stmmac_ops dwmac100_ops = {
.core_init = dwmac100_core_init,
.rx_coe = dwmac100_rx_coe_supported,
.dump_regs = dwmac100_dump_mac_regs,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/stmmac/dwmac100_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static void dwmac100_dma_diagnostic_fr(void *data, struct stmmac_extra_stats *x,
}
}

struct stmmac_dma_ops dwmac100_dma_ops = {
const struct stmmac_dma_ops dwmac100_dma_ops = {
.init = dwmac100_dma_init,
.dump_regs = dwmac100_dump_dma_regs,
.dma_mode = dwmac100_dma_operation_mode,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/stmmac/enh_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ static int enh_desc_get_rx_frame_len(struct dma_desc *p)
return p->des01.erx.frame_length;
}

struct stmmac_desc_ops enh_desc_ops = {
const struct stmmac_desc_ops enh_desc_ops = {
.tx_status = enh_desc_get_tx_status,
.rx_status = enh_desc_get_rx_status,
.get_tx_len = enh_desc_get_tx_len,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/stmmac/norm_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static int ndesc_get_rx_frame_len(struct dma_desc *p)
return p->des01.rx.frame_length;
}

struct stmmac_desc_ops ndesc_ops = {
const struct stmmac_desc_ops ndesc_ops = {
.tx_status = ndesc_get_tx_status,
.rx_status = ndesc_get_rx_status,
.get_tx_len = ndesc_get_tx_len,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/stmmac/stmmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@ static inline int stmmac_claim_resource(struct platform_device *pdev)
extern int stmmac_mdio_unregister(struct net_device *ndev);
extern int stmmac_mdio_register(struct net_device *ndev);
extern void stmmac_set_ethtool_ops(struct net_device *netdev);
extern struct stmmac_desc_ops enh_desc_ops;
extern struct stmmac_desc_ops ndesc_ops;
extern const struct stmmac_desc_ops enh_desc_ops;
extern const struct stmmac_desc_ops ndesc_ops;

0 comments on commit c8272ab

Please sign in to comment.