firmware: turris-mox-rwtm: make kobj_type structure constant
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 24 Mar 2023 16:27:50 +0000 (16:27 +0000)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 7 Apr 2023 15:17:00 +0000 (17:17 +0200)
commitf326e72a6e0baacea42ecaa9aaa4d7e7a355c972
tree772fb53fce4161c69b8fbc6e074e54a1741c7df6
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
firmware: turris-mox-rwtm: 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>
Reviewed-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
drivers/firmware/turris-mox-rwtm.c