projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7059ef
)
usb: renesas_usbhs: gadget: make usb_ep_ops const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sat, 12 Aug 2017 12:04:53 +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/renesas_usbhs/mod_gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/renesas_usbhs/mod_gadget.c
b/drivers/usb/renesas_usbhs/mod_gadget.c
index 93fba9033b00a7136b85a9995d7da32a140c61e9..b45b9f1e3d9d32ff0060d81ca97434d675cb7ade 100644
(file)
--- a/
drivers/usb/renesas_usbhs/mod_gadget.c
+++ b/
drivers/usb/renesas_usbhs/mod_gadget.c
@@
-767,7
+767,7
@@
static int usbhsg_ep_set_wedge(struct usb_ep *ep)
return __usbhsg_ep_set_halt_wedge(ep, 1, 1);
}
-static struct usb_ep_ops usbhsg_ep_ops = {
+static
const
struct usb_ep_ops usbhsg_ep_ops = {
.enable = usbhsg_ep_enable,
.disable = usbhsg_ep_disable,