ubifs: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 10 Feb 2023 02:16:13 +0000 (02:16 +0000)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Feb 2023 21:29:54 +0000 (22:29 +0100)
commit22d74bc26bbfde150f602b2a6e93fb11df30ce0b
tree02242d9b3dcb685aeb6dd22daf4867e74722fe7a
parent05b8773ca33253ea562be145cf3145b05ef19f86
ubifs: 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: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/sysfs.c