Skip to content
Snippets Groups Projects
user avatar
Thomas Weißschuh authored
Since commit ee6d3dd4 ("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: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarColy Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20230615121223.22502-3-colyli@suse.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
b98dd0b0
History
Name Last commit Last update