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

From: Johan Hovold
Date: Mon Oct 03 2022 - 02:39:46 EST


On Sat, Oct 01, 2022 at 06:51:28PM +0200, 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 +-
> drivers/usb/class/usblp.c | 2 +-
> drivers/usb/misc/iowarrior.c | 2 +-
> drivers/usb/misc/legousbtower.c | 2 +-
> include/linux/usb.h | 2 +-
> 5 files changed, 5 insertions(+), 5 deletions(-)

Looks correct and complete.

Reviewed-by: Johan Hovold <johan@xxxxxxxxxx>