aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/apm/xgene/xgene_enet_main.h
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2016-05-01 14:36:28 +0200
committerDavid S. Miller <davem@davemloft.net>2016-05-03 13:03:05 -0400
commitb555a3d1e91cfa75eb37680c0c86a32d18215729 (patch)
treee0a7a8f2ad5af2d9419cdd178752fb9604d4d7df /drivers/net/ethernet/apm/xgene/xgene_enet_main.h
parentfq_codel: add batch ability to fq_codel_drop() (diff)
downloadlinux-dev-b555a3d1e91cfa75eb37680c0c86a32d18215729.tar.xz
linux-dev-b555a3d1e91cfa75eb37680c0c86a32d18215729.zip
drivers: net: xgene: constify xgene_cle_ops structure
The xgene_cle_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Iyappan Subramanian <isubramanian@apm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/apm/xgene/xgene_enet_main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.h b/drivers/net/ethernet/apm/xgene/xgene_enet_main.h
index 175d18890c7a..0a2887b96a42 100644
--- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.h
+++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.h
@@ -191,7 +191,7 @@ struct xgene_enet_pdata {
const struct xgene_mac_ops *mac_ops;
const struct xgene_port_ops *port_ops;
struct xgene_ring_ops *ring_ops;
- struct xgene_cle_ops *cle_ops;
+ const struct xgene_cle_ops *cle_ops;
struct delayed_work link_work;
u32 port_id;
u8 cpu_bufnum;