RDMA/srp: Use DEVICE_ATTR_*() macros
authorYueHaibing <yuehaibing@huawei.com>
Fri, 28 May 2021 12:57:50 +0000 (20:57 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 May 2021 23:40:29 +0000 (20:40 -0300)
commit33e823460081759119193f2724e8abc16c98b248
treea31ec66ad2ec5f92a25c946f6caf1df6c8a2d274
parentc5b8eaf8afd8c2711233a344a5e2e8e4aa562301
RDMA/srp: Use DEVICE_ATTR_*() macros

Use DEVICE_ATTR_*() helpers instead of plain DEVICE_ATTR, which makes the
code a bit shorter and easier to read.

Link: https://lore.kernel.org/r/20210528125750.20788-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/srp/ib_srp.c