RDMA/qib: Use attributes for the port sysfs
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Jun 2021 16:00:30 +0000 (19:00 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 16 Jun 2021 23:58:31 +0000 (20:58 -0300)
commit4a7aaf88c89f12f8048137e274ce0d40fe1056b2
treea5f0b4c84caf8f6e5f6e4c230f6e7138cc63079a
parent526a12c8c56e80930621cedcf8b5f2fc3a169037
RDMA/qib: Use attributes for the port sysfs

qib should not be creating a mess of kobjects to attach to the port
kobject - this is all attributes. The proper API is to create an
attribute_group list and create it against the port's kobject.

Link: https://lore.kernel.org/r/911e0031e1ed495b0006e8a6efec7b67a702cd5e.1623427137.git.leonro@nvidia.com
Tested-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_sysfs.c