summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb3/vsc8211.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-05 03:58:28 +0100
commit46f85a9215d7352d886626e29c3fc3095bc5bec7 (patch)
treef83753d688e9204819fe6bb4d0bc3309f7737093 /drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
parentfsl/fman: allow modular build (diff)
downloadlinux-46f85a9215d7352d886626e29c3fc3095bc5bec7.tar.xz
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/cxgb3/vsc8211.c')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb3/vsc8211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb3/vsc8211.c b/drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
index 4f9a1c2724f4..8638ad42bf60 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
@@ -336,7 +336,7 @@ static int vsc8211_intr_handler(struct cphy *cphy)
return cphy_cause;
}
-static struct cphy_ops vsc8211_ops = {
+static const struct cphy_ops vsc8211_ops = {
.reset = vsc8211_reset,
.intr_enable = vsc8211_intr_enable,
.intr_disable = vsc8211_intr_disable,
@@ -350,7 +350,7 @@ static struct cphy_ops vsc8211_ops = {
.power_down = vsc8211_power_down,
};
-static struct cphy_ops vsc8211_fiber_ops = {
+static const struct cphy_ops vsc8211_fiber_ops = {
.reset = vsc8211_reset,
.intr_enable = vsc8211_intr_enable,
.intr_disable = vsc8211_intr_disable,