RDMA/uverbs: Use device.groups to initialize device attributes
authorParav Pandit <parav@mellanox.com>
Wed, 5 Sep 2018 06:48:00 +0000 (09:48 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 5 Sep 2018 22:19:25 +0000 (16:19 -0600)
commitb53b1c08a23eb1091982daacb2122f90a7094a77
tree5496d534bb224e63dd25dd261dda2cf921c0556f
parentc5c4d92e70f37369b5bdca5e85f9fc55dc2c8a3b
RDMA/uverbs: Use device.groups to initialize device attributes

Instead of explicitly adding device attribute files and handling such
error conditions, depend on device core layer to create device attributes
files based group pointer NULL terminated array.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_main.c