drm/xe: make kobject type struct as constant
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Mon, 3 Jul 2023 09:06:10 +0000 (14:36 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:35:15 +0000 (11:35 -0500)
commit55d8ac9631aaa8ae3794341c52009f635a0d3188
treeb97d9d2b28bcc8fa7fef896670d89d0eb1756953
parent43e82fb9ecf0009aeb95e284067a9a24a55a93ed
drm/xe: make kobject type struct as 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.

Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt_sysfs.c