]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pps: change pps_class to a const struct
authorJori Koolstra <jkoolstra@xs4all.nl>
Mon, 2 Mar 2026 15:11:32 +0000 (16:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 14:33:00 +0000 (16:33 +0200)
commitc230ae1f9480cf9d363ded8179b14b49c5d3dd69
treed619d7c1c023a6f7ea5ba4defe1a5dae9b9fb9bf
parentf7a1fec4de122bba0872addf757dd8c26efc2917
pps: change pps_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 pps_class to be a const struct class and drop the
class_create() call.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260302151132.3302993-1-jkoolstra@xs4all.nl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pps/pps.c