]> git.baikalelectronics.ru Git - kernel.git/commit
efi: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jan 2022 18:37:16 +0000 (19:37 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 6 Jan 2022 20:19:05 +0000 (21:19 +0100)
commit209a586c8ee87025c9fc6e8f21c701ce3469d061
tree94d786be49943037eb49eec2bce2a547899fea3a
parent19781593b5ce13b22bc6abf90dbe0c605ae0614a
efi: 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 firmware efi 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 we can soon
get rid of the obsolete default_attrs field.

Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: linux-efi@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efivars.c
drivers/firmware/efi/esrt.c
drivers/firmware/efi/runtime-map.c