projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fc4613
)
usb: gadget: udc: renesas_usb3: make usb_ep_ops const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sat, 12 Aug 2017 12:04:54 +0000
(17:34 +0530)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 11:18:53 +0000
(14:18 +0300)
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>
drivers/usb/gadget/udc/renesas_usb3.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/renesas_usb3.c
b/drivers/usb/gadget/udc/renesas_usb3.c
index
16ceb44
..
2e55ccc
100644
(file)
--- 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,