diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-28 14:57:22 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-12-29 13:42:04 -0600 |
commit | 0cf948aab9a0049456d9a498af3da6b403e2a0ed (patch) | |
tree | 78bcbb3c521fb49149568807b171a791dfc888ba /drivers/pci/pci.c | |
parent | 877fee2a0c65a3b0b6ac0e90d7d7718b5a0341d3 (diff) |
PCI/sysfs: Use default_groups in kobj_type for slot attrs
There are currently two ways to create a set of sysfs files for a
kobj_type: through the default_attrs field, and the default_groups field.
Move the PCI slot code to use the default_groups field which has been the
preferred way since aa30f47cf666 ("kobject: Add support for default
attribute groups to kobj_type") so that we can soon get rid of the obsolete
default_attrs field.
Link: https://lore.kernel.org/r/20211228135722.381023-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions