diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2023-02-14 03:23:52 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-02-14 15:52:37 +0100 |
commit | a527b0111798ed7b9f49830989eaabfe537e09ef (patch) | |
tree | 55e3d3d88bca6ef6fffb65112737ee4488c50cd5 /drivers/acpi/sysfs.c | |
parent | 446c85af665cf6d911c4821ac9507c8ba0cc7e75 (diff) | |
download | linux-a527b0111798ed7b9f49830989eaabfe537e09ef.tar.gz linux-a527b0111798ed7b9f49830989eaabfe537e09ef.tar.bz2 linux-a527b0111798ed7b9f49830989eaabfe537e09ef.zip |
ACPI: make kobj_type structures constant
Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.")
the driver core allows the usage of const struct kobj_type.
Take advantage of this to constify the structure definitions to prevent
modification at runtime.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index 7db3b530279b..7f4ff56c9d42 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -953,7 +953,7 @@ static struct attribute *hotplug_profile_attrs[] = { }; ATTRIBUTE_GROUPS(hotplug_profile); -static struct kobj_type acpi_hotplug_profile_ktype = { +static const struct kobj_type acpi_hotplug_profile_ktype = { .sysfs_ops = &kobj_sysfs_ops, .default_groups = hotplug_profile_groups, }; |