Messages in this thread | | | Date | Tue, 11 Oct 2022 00:45:50 -0500 | From | Pete Zaitcev <> | Subject | Re: [PATCH] USB: make devnode() callback in usb_class_driver take a const * |
| |
On Sat, 1 Oct 2022 18:51:28 +0200 Greg Kroah-Hartman <gregkh@linuxfoundation.org> 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@redhat.com>
-- P
| |