lkml.org 
[lkml]   [2022]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2022-10-11 07:46    [W:0.058 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site