diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-28 14:14:23 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-12-28 19:15:41 +0100 |
commit | 17f18417d6da07bbaafce84f80fa25d860b6e6d1 (patch) | |
tree | 6b671b919da0dceebba113cabdf758f05fc79148 /drivers/acpi/sysfs.c | |
parent | fc74e0a40e4f9fd0468e34045b0c45bba11dcbb2 (diff) | |
download | linux-17f18417d6da07bbaafce84f80fa25d860b6e6d1.tar.gz linux-17f18417d6da07bbaafce84f80fa25d860b6e6d1.tar.bz2 linux-17f18417d6da07bbaafce84f80fa25d860b6e6d1.zip |
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>
Diffstat (limited to 'drivers/acpi/sysfs.c')
-rw-r--r-- | drivers/acpi/sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index 00c0ebaab29f..a4b638bea6f1 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -939,10 +939,11 @@ static struct attribute *hotplug_profile_attrs[] = { &hotplug_enabled_attr.attr, NULL }; +ATTRIBUTE_GROUPS(hotplug_profile); static struct kobj_type acpi_hotplug_profile_ktype = { .sysfs_ops = &kobj_sysfs_ops, - .default_attrs = hotplug_profile_attrs, + .default_groups = hotplug_profile_groups, }; void acpi_sysfs_add_hotplug_profile(struct acpi_hotplug_profile *hotplug, |