mirror of
https://github.com/torvalds/linux.git
synced 2024-12-07 19:41:31 +00:00
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: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
e7059ef82a
commit
7fc461378c
@ -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,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user