nvme: simplify transport specific device attribute handling
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Oct 2022 09:34:13 +0000 (02:34 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 15 Nov 2022 09:55:56 +0000 (10:55 +0100)
commit86adbf0cdb9ec6533234696c3e243184d4d0d040
tree7ceb1a8bea5ae32c4d338ae7ebe958ebaabf216b
parent94cc781f69f49f665383dd87aef973b7896153d0
nvme: simplify transport specific device attribute handling

Allow the transport driver to override the attribute groups for the
control device, so that the PCIe driver doesn't manually have to add a
group after device creation and keep track of it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Tested-by Gerd Bayer <gbayer@linxu.ibm.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c