RDMA/i40iw: Constify ops structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 21 Nov 2020 00:25:29 +0000 (01:25 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 23 Nov 2020 20:30:17 +0000 (16:30 -0400)
commit82101630222fc6caa21502df0d02e0153aaf25d2
tree8be9219b309dcbb694669d6593b8182476255cfd
parent6d8285e604e0221b67bd5db736921b7ddce37d00
RDMA/i40iw: Constify ops structs

The ops structs are never modified. Make them const to allow the compiler
to put them in read-only memory.

Link: https://lore.kernel.org/r/20201121002529.89148-1-rikard.falkeborn@gmail.com
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/i40iw/i40iw_ctrl.c
drivers/infiniband/hw/i40iw/i40iw_type.h