firmware: dmi-sysfs: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 27 Feb 2023 03:17:37 +0000 (03:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2023 16:31:16 +0000 (17:31 +0100)
commit81773c98a808ee9881e2c503d6b9a5316c130694
tree42a80e98e29904915d64e88488138d233b4ccbcd
parent9b12f050c76f090cc6d0aebe0ef76fed79ec3f15
firmware: dmi-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>
Link: https://lore.kernel.org/r/20230227-kobj_type-firmware-dmi-v1-1-d1131d4e7a2b@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/dmi-sysfs.c