cpufreq: Make kobj_type structure constant
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 7 Feb 2023 19:58:18 +0000 (19:58 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 9 Feb 2023 19:29:32 +0000 (20:29 +0100)
commit108fcad91109bd7e9374ae9d509085f5ec55799b
treecee9fa67216de8a308063063c47b0e7987cc8b91
parent5d8f384a9b4fc50f6a18405f1c08e5a87a77b5b3
cpufreq: 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>
drivers/cpufreq/cpufreq.c