diff options
author | Adam Ford <aford173@gmail.com> | 2022-03-04 16:59:02 -0600 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2022-04-22 10:35:14 +0200 |
commit | 570eaadac05c131288335248e4611e663b85c278 (patch) | |
tree | 09c65751bb7f9fdee41deb1e329d0dc17904d64b /drivers | |
parent | ea5583b90f9c162af6f2025718dc50ffbb6e4552 (diff) | |
download | u-boot-570eaadac05c131288335248e4611e663b85c278.tar.gz u-boot-570eaadac05c131288335248e4611e663b85c278.tar.bz2 u-boot-570eaadac05c131288335248e4611e663b85c278.zip |
usb: gadget: ci: Make various ops const
ci_udc_ops and ci_ep_ops do not change their operations.
Mark them as const.
Signed-off-by: Adam Ford <aford173@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/ci_udc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index 542684c1c3..d9a89a17b2 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -94,11 +94,11 @@ static struct usb_request * ci_ep_alloc_request(struct usb_ep *ep, unsigned int gfp_flags); static void ci_ep_free_request(struct usb_ep *ep, struct usb_request *_req); -static struct usb_gadget_ops ci_udc_ops = { +static const struct usb_gadget_ops ci_udc_ops = { .pullup = ci_pullup, }; -static struct usb_ep_ops ci_ep_ops = { +static const struct usb_ep_ops ci_ep_ops = { .enable = ci_ep_enable, .disable = ci_ep_disable, .queue = ci_ep_queue, |