Re: [PATCH] USB: make devnode() callback in usb_class_driver take a const *
From: Pete Zaitcev
Date: Tue Oct 11 2022 - 01:46:03 EST
On Sat, 1 Oct 2022 18:51:28 +0200
Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> +++ b/drivers/usb/class/usblp.c
> @@ -1090,7 +1090,7 @@ static const struct file_operations usblp_fops = {
> -static char *usblp_devnode(struct device *dev, umode_t *mode)
> +static char *usblp_devnode(const struct device *dev, umode_t *mode)
> {
> return kasprintf(GFP_KERNEL, "usb/%s", dev_name(dev));
> }
Seems obvious.
Acked-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>
-- P