ACPI: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 14 Feb 2023 03:23:52 +0000 (03:23 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 14 Feb 2023 14:52:37 +0000 (15:52 +0100)
commita527b0111798ed7b9f49830989eaabfe537e09ef
tree55e3d3d88bca6ef6fffb65112737ee4488c50cd5
parent446c85af665cf6d911c4821ac9507c8ba0cc7e75
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>
drivers/acpi/cppc_acpi.c
drivers/acpi/device_sysfs.c
drivers/acpi/sysfs.c