nvme-pci: use attribute group for cmb sysfs
authorKeith Busch <kbusch@kernel.org>
Wed, 14 Jul 2021 21:02:37 +0000 (14:02 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:22 +0000 (14:42 +0200)
commit0521905e859fd1a07949cb18efb20cdd4aab3b20
tree536ab9c7dd6093f141401bc0c3443707b2111afa
parente7006de6c23803799be000a5dcce4d916a36541a
nvme-pci: use attribute group for cmb sysfs

Appending sysfs files to the controller kobject is a bit clunky and
becomes a maintenance problem as more attributes are added. The
attribute group infrastructure handles this better, so use that.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c