diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-05-03 22:59:42 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-05-15 09:06:49 +0200 |
commit | 655016dc2d30379a417404ae88df9bfb7ede38e6 (patch) | |
tree | c791aa315bb5f9a851046edd0403ca40277db4c6 /drivers/usb/gadget/usbstring.c | |
parent | usb: gadget: udc: core: Document the relation between usb_ep_queue() and comp... (diff) | |
download | linux-655016dc2d30379a417404ae88df9bfb7ede38e6.tar.xz linux-655016dc2d30379a417404ae88df9bfb7ede38e6.zip |
usb/gadget: Constify usb_gadget_get_string "table" argument
The table is never modified by the function. This allows us
to use it on a statically defined table that is marked const.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/usbstring.c')
-rw-r--r-- | drivers/usb/gadget/usbstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/usbstring.c b/drivers/usb/gadget/usbstring.c index 566ab261e8b7..7c24d1ce1088 100644 --- a/drivers/usb/gadget/usbstring.c +++ b/drivers/usb/gadget/usbstring.c @@ -33,7 +33,7 @@ * characters (which are also widely used in C strings). */ int -usb_gadget_get_string (struct usb_gadget_strings *table, int id, u8 *buf) +usb_gadget_get_string (const struct usb_gadget_strings *table, int id, u8 *buf) { struct usb_string *s; int len; |