OSDN Git Service

usb: gadget: udc: renesas_usb3: make usb_ep_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 12 Aug 2017 12:04:54 +0000 (17:34 +0530)
committerFelipe 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/gadget/udc/renesas_usb3.c

index 16ceb44..2e55ccc 100644 (file)
@@ -2187,7 +2187,7 @@ static void renesas_usb3_ep_fifo_flush(struct usb_ep *_ep)
        }
 }
 
-static struct usb_ep_ops renesas_usb3_ep_ops = {
+static const struct usb_ep_ops renesas_usb3_ep_ops = {
        .enable         = renesas_usb3_ep_enable,
        .disable        = renesas_usb3_ep_disable,