]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pps: change pps_gen_class to a const struct
authorJori Koolstra <jkoolstra@xs4all.nl>
Mon, 2 Mar 2026 14:24:36 +0000 (15:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 14:32:52 +0000 (16:32 +0200)
commit4dc0c899b14c3ea2c9b5f42b523301040d1c8100
treebdf0a98c30fd6254abfbcd2bace5eaf9bbd22f02
parent9aad71144fa3682cca3837a06c8623016790e7ec
pps: change pps_gen_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_gen_class to be a const struct class and drop the
class_create() call.

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