]> 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)
commit59243ecf3d9f53d8b4ae6658dd8dda98467ffb4f
tree536ab9c7dd6093f141401bc0c3443707b2111afa
parente048b22adf66563fd89a2e15d10b8dca258bef70
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