提交 7fc46137 编写于 作者: B Bhumika Goyal 提交者: Felipe Balbi

usb: renesas_usbhs: gadget: 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: NBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 e7059ef8
...@@ -767,7 +767,7 @@ static int usbhsg_ep_set_wedge(struct usb_ep *ep) ...@@ -767,7 +767,7 @@ static int usbhsg_ep_set_wedge(struct usb_ep *ep)
return __usbhsg_ep_set_halt_wedge(ep, 1, 1); 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, .enable = usbhsg_ep_enable,
.disable = usbhsg_ep_disable, .disable = usbhsg_ep_disable,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册