aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/i40iw
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-05-01 14:07:23 +0200
committerDoug Ledford <dledford@redhat.com>2016-05-13 13:47:07 -0400
commita647040ea85ae0bf5bd93f2a1b42dba57b0d0059 (patch)
treecbdb38ec8d39ad33a36e69420f69927192af8e23 /drivers/infiniband/hw/i40iw
parentIB/srp: Do not register memory if never_register has been set (diff)
downloadlinux-dev-a647040ea85ae0bf5bd93f2a1b42dba57b0d0059.tar.xz
linux-dev-a647040ea85ae0bf5bd93f2a1b42dba57b0d0059.zip
i40e: constify i40e_client_ops structure
The i40e_client_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> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c
index 72a10a19880a..1f41b2c7333e 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_main.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_main.c
@@ -1892,7 +1892,7 @@ static enum i40iw_status_code i40iw_virtchnl_send(struct i40iw_sc_dev *dev,
}
/* client interface functions */
-static struct i40e_client_ops i40e_ops = {
+static const struct i40e_client_ops i40e_ops = {
.open = i40iw_open,
.close = i40iw_close,
.l2_param_change = i40iw_l2param_change,