]> git.ipfire.org Git - thirdparty/linux.git/commit
gpib: common: change gpib_class to a const struct
authorJori Koolstra <jkoolstra@xs4all.nl>
Tue, 3 Mar 2026 19:21:20 +0000 (20:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2026 10:48:51 +0000 (11:48 +0100)
commit04576813544d141b50e7e80e2f447b88235c61d7
tree1093d9a327b2ed99cb20e83252a59dd8a75bfdd9
parent42df3a519ab6d355e2c43f1e30eb5414b60aeea5
gpib: common: change gpib_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 gpib_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>
Link: https://patch.msgid.link/20260303192124.3855792-1-jkoolstra@xs4all.nl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpib/common/gpib_os.c