RDMA/srp: Use the attribute group mechanism for sysfs attributes
authorBart Van Assche <bvanassche@acm.org>
Thu, 25 Aug 2022 21:39:00 +0000 (14:39 -0700)
committerLeon Romanovsky <leonro@nvidia.com>
Sun, 28 Aug 2022 10:02:28 +0000 (13:02 +0300)
commitb8a9c18c2f39bd84b8240b744b666114f7d62054
tree9a7d7a746e658c4622255c7aa94051bfbb59b82e
parent351e458f725da8106eba920f3cdecf39a0e31136
RDMA/srp: Use the attribute group mechanism for sysfs attributes

Simplify the SRP driver by using the attribute group mechanism instead
of calling device_create_file() explicitly.

Link: https://lore.kernel.org/r/20220825213900.864587-5-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/srp/ib_srp.c