]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/core: Use the DEVICE_ATTR_RO macro
authorYueHaibing <yuehaibing@huawei.com>
Wed, 26 May 2021 13:29:49 +0000 (21:29 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 May 2021 23:39:51 +0000 (20:39 -0300)
commitc5b8eaf8afd8c2711233a344a5e2e8e4aa562301
tree7ba9326ef8a3792e57a8084b2d314156a5f2b3ab
parent1f8f60f35f79210fe6af32fc62528bd5c0ace923
RDMA/core: Use the DEVICE_ATTR_RO macro

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

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