Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebce561a authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Felipe Balbi
Browse files

usb: dwc2: 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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 64b59f11
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4179,7 +4179,7 @@ static int dwc2_hsotg_ep_sethalt_lock(struct usb_ep *ep, int value)
	return ret;
}

static struct usb_ep_ops dwc2_hsotg_ep_ops = {
static const struct usb_ep_ops dwc2_hsotg_ep_ops = {
	.enable		= dwc2_hsotg_ep_enable,
	.disable	= dwc2_hsotg_ep_disable,
	.alloc_request	= dwc2_hsotg_ep_alloc_request,