]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6f5ccfd27402715e8c7b50450da463ed3a72020
tree9a7d7a746e658c4622255c7aa94051bfbb59b82e
parent41a494717f1d9abf2adb84c6f10512f4a9f3f4aa
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