]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
most: replace cdev_component->class with a const struct class
authorJori Koolstra <jkoolstra@xs4all.nl>
Wed, 1 Apr 2026 17:00:43 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 14:32:57 +0000 (16:32 +0200)
commitf7a1fec4de122bba0872addf757dd8c26efc2917
tree5e3ac841bae85fd05944318173294b00beb2faa8
parent4dc0c899b14c3ea2c9b5f42b523301040d1c8100
most: replace cdev_component->class with a const struct class

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. Replace cdev_component->class with a const struct class and drop
the class_create() call. Compile tested only.

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>
Link: https://patch.msgid.link/20260401170043.3844117-1-jkoolstra@xs4all.nl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/most/most_cdev.c