Re: [PATCH] pps: change pps_gen_class to a const struct

From: Rodolfo Giometti

Date: Mon Mar 02 2026 - 09:52:19 EST


On 3/2/26 15:27, Greg KH wrote:
On Mon, Mar 02, 2026 at 03:24:36PM +0100, Jori Koolstra wrote:
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@xxxxxxxxx>
---
drivers/pps/generators/pps_gen.c | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)

Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

Acked-by: Rodolfo Giometti <giometti@xxxxxxxxxxxx>

--
GNU/Linux Solutions e-mail: giometti@xxxxxxxxxxxx
Linux Device Driver giometti@xxxxxxxx
Embedded Systems phone: +39 349 2432127
UNIX programming