diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2020-01-01 08:43:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-08 17:55:24 +0100 |
commit | 0e84f2fd0d261ace1bde76b3c0ed6eee02126e85 (patch) | |
tree | 7c117f5c4383f2c240ab83e7a27a137dc6496afe /drivers/usb/gadget | |
parent | 17da9b8e5ab89ad815671a95db1b53d835093060 (diff) | |
download | linux-0e84f2fd0d261ace1bde76b3c0ed6eee02126e85.tar.gz linux-0e84f2fd0d261ace1bde76b3c0ed6eee02126e85.tar.bz2 linux-0e84f2fd0d261ace1bde76b3c0ed6eee02126e85.zip |
usb: gadget: udc: atmel: constify copied structure
The usba_gadget_template structure is only copied into another
structure, so make it const.
The opportunity for this change was found using Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Acked-by: Cristian Birsan <cristian.birsan@microchip.com>
Link: https://lore.kernel.org/r/1577864614-5543-5-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/udc/atmel_usba_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 8a42768e3213..6e0432141c40 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -1122,7 +1122,7 @@ static struct usb_endpoint_descriptor usba_ep0_desc = { .bInterval = 1, }; -static struct usb_gadget usba_gadget_template = { +static const struct usb_gadget usba_gadget_template = { .ops = &usba_udc_ops, .max_speed = USB_SPEED_HIGH, .name = "atmel_usba_udc", |