diff options
| author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-05-03 16:59:42 -0400 |
|---|---|---|
| committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-05-15 03:06:49 -0400 |
| commit | 655016dc2d30379a417404ae88df9bfb7ede38e6 (patch) | |
| tree | c791aa315bb5f9a851046edd0403ca40277db4c6 /include/linux/usb | |
| parent | 5d1332a8eabd8bd5b8c322d45542968ee6f113be (diff) | |
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 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/gadget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 847f423ad9b3..e5cd84a0f84a 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
| @@ -763,7 +763,7 @@ struct usb_gadget_string_container { | |||
| 763 | }; | 763 | }; |
| 764 | 764 | ||
| 765 | /* put descriptor for string with that id into buf (buflen >= 256) */ | 765 | /* put descriptor for string with that id into buf (buflen >= 256) */ |
| 766 | int usb_gadget_get_string(struct usb_gadget_strings *table, int id, u8 *buf); | 766 | int usb_gadget_get_string(const struct usb_gadget_strings *table, int id, u8 *buf); |
| 767 | 767 | ||
| 768 | /*-------------------------------------------------------------------------*/ | 768 | /*-------------------------------------------------------------------------*/ |
| 769 | 769 | ||
