Skip to content

Commit

Permalink
usb: gadget: fsl_qe_udc: constify qe_ep0_desc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Aug 10, 2017
1 parent d2032b4 commit 4b67a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/udc/fsl_qe_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit 4b67a54

Please sign in to comment.