diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2016-01-03 14:09:37 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-04 21:58:28 -0500 |
commit | 46f85a9215d7352d886626e29c3fc3095bc5bec7 (patch) | |
tree | f83753d688e9204819fe6bb4d0bc3309f7737093 /drivers/net/ethernet/chelsio/cxgb3/common.h | |
parent | 46678612e13027b0ea901664504f3bf347756125 (diff) |
chelsio: constify cphy_ops structures
The cphy_ops structures are never modified, so declare them as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb3/common.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb3/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb3/common.h b/drivers/net/ethernet/chelsio/cxgb3/common.h index 442480982d3f..1bd7d89666c4 100644 --- a/drivers/net/ethernet/chelsio/cxgb3/common.h +++ b/drivers/net/ethernet/chelsio/cxgb3/common.h @@ -575,7 +575,7 @@ static inline int t3_mdio_write(struct cphy *phy, int mmd, int reg, /* Convenience initializer */ static inline void cphy_init(struct cphy *phy, struct adapter *adapter, - int phy_addr, struct cphy_ops *phy_ops, + int phy_addr, const struct cphy_ops *phy_ops, const struct mdio_ops *mdio_ops, unsigned int caps, const char *desc) { |