[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1502539495-20161-3-git-send-email-bhumirks@gmail.com>
Date: Sat, 12 Aug 2017 17:34:54 +0530
From: Bhumika Goyal <bhumirks@...il.com>
To: julia.lawall@...6.fr, johnyoun@...opsys.com,
gregkh@...uxfoundation.org, balbi@...nel.org,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Bhumika Goyal <bhumirks@...il.com>
Subject: [PATCH 2/3] usb: gadget: udc: renesas_usb3: 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@...il.com>
---
drivers/usb/gadget/udc/renesas_usb3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/udc/renesas_usb3.c b/drivers/usb/gadget/udc/renesas_usb3.c
index e1de8fe..a995390 100644
--- a/drivers/usb/gadget/udc/renesas_usb3.c
+++ b/drivers/usb/gadget/udc/renesas_usb3.c
@@ -2192,7 +2192,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,
--
1.9.1
Powered by blists - more mailing lists