]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
IB/ipoib: Use DEVICE_ATTR_*() macros
authorYueHaibing <yuehaibing@huawei.com>
Wed, 26 May 2021 13:27:53 +0000 (21:27 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 May 2021 23:39:16 +0000 (20:39 -0300)
commit1f8f60f35f79210fe6af32fc62528bd5c0ace923
treeb8b9c758da5c36e0b6b79a5b9167ff195cbbe92f
parentd58c23c9254894d438ce5c516745cf694eac86b7
IB/ipoib: Use DEVICE_ATTR_*() macros

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

Link: https://lore.kernel.org/r/20210526132753.3092-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c