]> asedeno.scripts.mit.edu Git - linux.git/commit
usb/gadget: Constify usb_gadget_get_string "table" argument
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 3 May 2018 20:59:42 +0000 (06:59 +1000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 May 2018 07:06:49 +0000 (10:06 +0300)
commit655016dc2d30379a417404ae88df9bfb7ede38e6
treec791aa315bb5f9a851046edd0403ca40277db4c6
parent5d1332a8eabd8bd5b8c322d45542968ee6f113be
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>
drivers/usb/gadget/usbstring.c
include/linux/usb/gadget.h