Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1710249 > unrolled thread

[PATCH 0/3] usb: make usb_ep_ops const

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-12 14:10 +0200
Last post2017-08-12 14:10 +0200
Articles 4 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/3] usb: make usb_ep_ops const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-12 14:10 +0200
    [PATCH 1/3] usb: renesas_usbhs: gadget: make usb_ep_ops const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-12 14:10 +0200
    [PATCH 2/3] usb: gadget: udc: renesas_usb3: make usb_ep_ops const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-12 14:10 +0200
    [PATCH 3/3] usb: dwc2: gadget: make usb_ep_ops const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-12 14:10 +0200

#1710249 — [PATCH 0/3] usb: make usb_ep_ops const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-12 14:10 +0200
Subject[PATCH 0/3] usb: make usb_ep_ops const
Message-ID<udDoS-yg-21@gated-at.bofh.it>
Constify usb_ep_ops structures.

Bhumika Goyal (3):
  usb: renesas_usbhs: gadget: make usb_ep_ops const
  usb: gadget: udc: renesas_usb3: make usb_ep_ops const
  usb: dwc2: gadget: make usb_ep_ops const

 drivers/usb/dwc2/gadget.c              | 2 +-
 drivers/usb/gadget/udc/renesas_usb3.c  | 2 +-
 drivers/usb/renesas_usbhs/mod_gadget.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

-- 
1.9.1

[toc] | [next] | [standalone]


#1710251 — [PATCH 1/3] usb: renesas_usbhs: gadget: make usb_ep_ops const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-12 14:10 +0200
Subject[PATCH 1/3] usb: renesas_usbhs: gadget: make usb_ep_ops const
Message-ID<udDoS-yg-25@gated-at.bofh.it>
In reply to#1710249
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>
---
 drivers/usb/renesas_usbhs/mod_gadget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c
index 2c8161b..55095e4 100644
--- a/drivers/usb/renesas_usbhs/mod_gadget.c
+++ b/drivers/usb/renesas_usbhs/mod_gadget.c
@@ -764,7 +764,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,
 
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1710253 — [PATCH 2/3] usb: gadget: udc: renesas_usb3: make usb_ep_ops const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-12 14:10 +0200
Subject[PATCH 2/3] usb: gadget: udc: renesas_usb3: make usb_ep_ops const
Message-ID<udDoS-yg-29@gated-at.bofh.it>
In reply to#1710249
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>
---
 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

[toc] | [prev] | [next] | [standalone]


#1710255 — [PATCH 3/3] usb: dwc2: gadget: make usb_ep_ops const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-12 14:10 +0200
Subject[PATCH 3/3] usb: dwc2: gadget: make usb_ep_ops const
Message-ID<udDoS-yg-33@gated-at.bofh.it>
In reply to#1710249
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>
---
 drivers/usb/dwc2/gadget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index c4066cd..0d8e09c 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -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,
-- 
1.9.1

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web