aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/chelsio/cxgb/my3126.c
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2016-01-03 14:09:37 +0100
committerDavid S. Miller <davem@davemloft.net>2016-01-04 21:58:28 -0500
commit46f85a9215d7352d886626e29c3fc3095bc5bec7 (patch)
treef83753d688e9204819fe6bb4d0bc3309f7737093 /drivers/net/ethernet/chelsio/cxgb/my3126.c
parentfsl/fman: allow modular build (diff)
downloadwireguard-linux-46f85a9215d7352d886626e29c3fc3095bc5bec7.tar.xz
wireguard-linux-46f85a9215d7352d886626e29c3fc3095bc5bec7.zip
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/cxgb/my3126.c')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb/my3126.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb/my3126.c b/drivers/net/ethernet/chelsio/cxgb/my3126.c
index a683fd3bb624..d546f46c8ef7 100644
--- a/drivers/net/ethernet/chelsio/cxgb/my3126.c
+++ b/drivers/net/ethernet/chelsio/cxgb/my3126.c
@@ -154,7 +154,7 @@ static void my3126_destroy(struct cphy *cphy)
kfree(cphy);
}
-static struct cphy_ops my3126_ops = {
+static const struct cphy_ops my3126_ops = {
.destroy = my3126_destroy,
.reset = my3126_reset,
.interrupt_enable = my3126_interrupt_enable,