]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dibs: change dibs_class to a const struct
authorJori Koolstra <jkoolstra@xs4all.nl>
Tue, 3 Mar 2026 16:31:04 +0000 (17:31 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Mar 2026 02:48:15 +0000 (18:48 -0800)
commitad3dfa80be765757f612da04318248f6d20e4f71
treeee09cdc0ff41b5649e96386c769da5e6aa235883
parentd37f53822c4c96b3fbcd487b0da4f2232c5863e6
dibs: change dibs_class to a const struct

The class_create() call has been deprecated in favor of class_register()
as the driver core now allows for a struct class to be in read-only
memory. Change dibs_class to be a const struct class and drop the
class_create() call.

Link: https://lore.kernel.org/all/2023040244-duffel-pushpin-f738@gregkh/
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Link: https://patch.msgid.link/20260303163104.3749311-1-jkoolstra@xs4all.nl
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dibs/dibs_main.c