cpuidle: sysfs: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 7 Feb 2023 19:55:19 +0000 (19:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 9 Feb 2023 20:04:01 +0000 (21:04 +0100)
commite898b07deb3ce801b21113979a05f4b3166c7cb3
tree78803db6622e101d36442b717f82d40e2f3efa4c
parent7787943a3a8ade6594a68db28c166adbb1d3708c
cpuidle: sysfs: 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/cpuidle/sysfs.c