]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC: Use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jan 2022 11:24:01 +0000 (12:24 +0100)
committerBorislav Petkov <bp@suse.de>
Sun, 23 Jan 2022 19:01:29 +0000 (20:01 +0100)
commitc5dc7afd028e243eb13365ed3aa6d49eb942c8c7
treea54146b57c4df4f1b128e834ae8087b11e4e3bd9
parent7fb06b26d61b7545bfab9c919a8312c0a3a1810d
EDAC: Use default_groups in kobj_type

There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field. Move the edac sysfs code to use default_groups field which has
been the preferred way since

  69dee9413867 ("kobject: Add support for default attribute groups to kobj_type")

so that the obsolete default_attrs field can be removed soon.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220104112401.1067148-2-gregkh@linuxfoundation.org
drivers/edac/edac_device_sysfs.c
drivers/edac/edac_pci_sysfs.c