Re: [PATCH] USB: make devnode() callback in usb_class_driver take a const *

From: Jiri Kosina
Date: Tue Oct 04 2022 - 04:24:29 EST


On Sat, 1 Oct 2022, Greg Kroah-Hartman wrote:

> With the changes to the driver core to make more pointers const, the USB
> subsystem also needs to be modified to take a const * for the devnode
> callback so that the driver core's constant pointer will also be
> properly propagated.
>
> Cc: Jiri Kosina <jikos@xxxxxxxxxx>
> Cc: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
> Cc: Pete Zaitcev <zaitcev@xxxxxxxxxx>
> Cc: Juergen Stuber <starblue@xxxxxxxxxxxxxxxxxxxxx>
> Cc: Johan Hovold <johan@xxxxxxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> ---
> drivers/hid/usbhid/hiddev.c | 2 +-

For hiddev.c:

Reviewed-by: Jiri Kosina <jkosina@xxxxxxx>

Thanks,

--
Jiri Kosina
SUSE Labs