ACPI: sysfs: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Dec 2021 13:14:23 +0000 (14:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Dec 2021 18:15:41 +0000 (19:15 +0100)
commit17f18417d6da07bbaafce84f80fa25d860b6e6d1
tree6b671b919da0dceebba113cabdf758f05fc79148
parentfc74e0a40e4f9fd0468e34045b0c45bba11dcbb2
ACPI: sysfs: 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 ACPI sysfs code to use 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.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c
drivers/acpi/device_sysfs.c
drivers/acpi/sysfs.c