]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9fad7989aa6e4866cc06992613c245f1b01927ca
tree536ab9c7dd6093f141401bc0c3443707b2111afa
parentfc23af1887d612b366645b3ebff56b7ab4b2ac74
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