diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-05-01 14:22:21 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-05-13 13:47:07 -0400 |
commit | dc1badf63026550ce8d099c3a4d1c803d23b038f (patch) | |
tree | 70615dc79579e14620c13f5ca4dec358d879d5a1 /drivers/infiniband/hw/i40iw/i40iw_vf.c | |
parent | a647040ea85ae0bf5bd93f2a1b42dba57b0d0059 (diff) |
i40iw: constify i40iw_vf_cqp_ops structure
The i40iw_vf_cqp_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/i40iw_vf.c')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_vf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_vf.c b/drivers/infiniband/hw/i40iw/i40iw_vf.c index cb0f18340e14..e33d4810965c 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_vf.c +++ b/drivers/infiniband/hw/i40iw/i40iw_vf.c @@ -80,6 +80,6 @@ enum i40iw_status_code i40iw_manage_vf_pble_bp(struct i40iw_sc_cqp *cqp, return 0; } -struct i40iw_vf_cqp_ops iw_vf_cqp_ops = { +const struct i40iw_vf_cqp_ops iw_vf_cqp_ops = { i40iw_manage_vf_pble_bp }; |