mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
usb: gadget: fsl_qe_udc: constify qe_ep0_desc
qe_ep0_desc is only passed as the second argument to qe_ep_init, which is const, so qe_ep0_desc can be const too. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Li Yang <leoyang.li@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d2032b4b6e
commit
4b67a54a62
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ static const char *const ep_name[] = {
|
|||
"ep3",
|
||||
};
|
||||
|
||||
static struct usb_endpoint_descriptor qe_ep0_desc = {
|
||||
static const struct usb_endpoint_descriptor qe_ep0_desc = {
|
||||
.bLength = USB_DT_ENDPOINT_SIZE,
|
||||
.bDescriptorType = USB_DT_ENDPOINT,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue