diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-12 17:34:54 +0530 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-08-15 14:18:53 +0300 |
commit | 64b59f11dd52071a800090ca14212b5c22aaa683 (patch) | |
tree | 529ad74e3ab7b6dd9ecc307d088292b18296f956 /drivers/usb/gadget | |
parent | 7fc461378cad592e8e606cce2b05b917982539fc (diff) | |
download | linux-stable-64b59f11dd52071a800090ca14212b5c22aaa683.tar.gz linux-stable-64b59f11dd52071a800090ca14212b5c22aaa683.tar.bz2 linux-stable-64b59f11dd52071a800090ca14212b5c22aaa683.zip |
usb: gadget: udc: renesas_usb3: make usb_ep_ops const
Make the structure const as it is only stored in the ops field of a
usb_ep structure, which is of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/udc/renesas_usb3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/renesas_usb3.c b/drivers/usb/gadget/udc/renesas_usb3.c index 16ceb445bee8..2e55ccc28d1c 100644 --- a/drivers/usb/gadget/udc/renesas_usb3.c +++ b/drivers/usb/gadget/udc/renesas_usb3.c @@ -2187,7 +2187,7 @@ static void renesas_usb3_ep_fifo_flush(struct usb_ep *_ep) } } -static struct usb_ep_ops renesas_usb3_ep_ops = { +static const struct usb_ep_ops renesas_usb3_ep_ops = { .enable = renesas_usb3_ep_enable, .disable = renesas_usb3_ep_disable, |