drm/i915: Make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 16 Feb 2023 01:05:30 +0000 (01:05 +0000)
committerJani Nikula <jani.nikula@intel.com>
Fri, 17 Feb 2023 09:50:28 +0000 (11:50 +0200)
commit01361096a33a81cc224e12e8cf06240f12737365
treee60d04f368b2a2b90fdb878d6e179fcd3a147a81
parentd6683bbe70d4cdbf3da6acecf7d569cc6f0b4382
drm/i915: 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>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230216-kobj_type-i915-v1-1-ca65c9b93518@weissschuh.net
drivers/gpu/drm/i915/gt/intel_gt_sysfs.c
drivers/gpu/drm/i915/gt/sysfs_engines.c