cpufreq: schedutil: make kobj_type structure constant
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 20 Feb 2023 23:28:54 +0000 (23:28 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Feb 2023 18:57:29 +0000 (19:57 +0100)
commit70ba26cbe02635461c91fa7133941da685e2f08d
tree1fd4938677d945a9f3e7be5fbcba462c7ce2d950
parent7af78020e28a532262d00d94de708a705d636e91
cpufreq: schedutil: make kobj_type structure 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 definition to prevent
modification at runtime.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/sched/cpufreq_schedutil.c