kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/11] constify hc_driver structures
@ 2017-07-28 20:41 Julia Lawall
  2017-07-28 20:41 ` [PATCH 01/11] isp1362-hcd: " Julia Lawall
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: devel
  Cc: kernel-janitors, greybus-dev, linux-kernel, Greg Kroah-Hartman,
	linux-usb

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@

static struct hc_driver i@p = { ... };

@ok1@
identifier r.i;
expression e1;
position p;
@@

usb_create_hcd(&i@p,...)

@bad@
position p != {r.p,ok1.p};
identifier r.i;
struct hc_driver e;
@@

e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@

static
+const
 struct hc_driver i = { ... };
// </smpl>

---

 drivers/staging/greybus/usb.c        |    2 +-
 drivers/usb/c67x00/c67x00-hcd.c      |    2 +-
 drivers/usb/host/hwa-hc.c            |    2 +-
 drivers/usb/host/isp116x-hcd.c       |    2 +-
 drivers/usb/host/isp1362-hcd.c       |    2 +-
 drivers/usb/host/max3421-hcd.c       |    2 +-
 drivers/usb/host/r8a66597-hcd.c      |    2 +-
 drivers/usb/host/sl811-hcd.c         |    2 +-
 drivers/usb/host/u132-hcd.c          |    2 +-
 drivers/usb/host/whci/hcd.c          |    2 +-
 drivers/usb/renesas_usbhs/mod_host.c |    2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 01/11] isp1362-hcd: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-28 20:41 ` [PATCH 02/11] usb: host: max3421-hcd: " Julia Lawall
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel-janitors, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/host/isp1362-hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c
index 0f2b4b3..9b7e307 100644
--- a/drivers/usb/host/isp1362-hcd.c
+++ b/drivers/usb/host/isp1362-hcd.c
@@ -2591,7 +2591,7 @@ static int isp1362_hc_start(struct usb_hcd *hcd)
 
 /*-------------------------------------------------------------------------*/
 
-static struct hc_driver isp1362_hc_driver = {
+static const struct hc_driver isp1362_hc_driver = {
 	.description =		hcd_name,
 	.product_desc =		"ISP1362 Host Controller",
 	.hcd_priv_size =	sizeof(struct isp1362_hcd),


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 02/11] usb: host: max3421-hcd: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
  2017-07-28 20:41 ` [PATCH 01/11] isp1362-hcd: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-28 20:41 ` [PATCH 03/11] usb: r8a66597-hcd: " Julia Lawall
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel-janitors, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/host/max3421-hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/max3421-hcd.c b/drivers/usb/host/max3421-hcd.c
index 369869a..0ece9a9 100644
--- a/drivers/usb/host/max3421-hcd.c
+++ b/drivers/usb/host/max3421-hcd.c
@@ -1811,7 +1811,7 @@ enum {
 {
 }
 
-static struct hc_driver max3421_hcd_desc = {
+static const struct hc_driver max3421_hcd_desc = {
 	.description =		"max3421",
 	.product_desc =		DRIVER_DESC,
 	.hcd_priv_size =	sizeof(struct max3421_hcd),


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 03/11] usb: r8a66597-hcd: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
  2017-07-28 20:41 ` [PATCH 01/11] isp1362-hcd: " Julia Lawall
  2017-07-28 20:41 ` [PATCH 02/11] usb: host: max3421-hcd: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-28 20:41 ` [PATCH 04/11] usb: host/sl811-hcd: " Julia Lawall
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel-janitors, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/host/r8a66597-hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index 7bf78be..5e5fc9d 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -2312,7 +2312,7 @@ static int r8a66597_bus_resume(struct usb_hcd *hcd)
 #define	r8a66597_bus_resume	NULL
 #endif
 
-static struct hc_driver r8a66597_hc_driver = {
+static const struct hc_driver r8a66597_hc_driver = {
 	.description =		hcd_name,
 	.hcd_priv_size =	sizeof(struct r8a66597),
 	.irq =			r8a66597_irq,


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 04/11] usb: host/sl811-hcd: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
                   ` (2 preceding siblings ...)
  2017-07-28 20:41 ` [PATCH 03/11] usb: r8a66597-hcd: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-28 20:41 ` [PATCH 05/11] usb: host: u132-hcd: " Julia Lawall
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel-janitors, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/host/sl811-hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index fd2a114..24ad1d6 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -1554,7 +1554,7 @@ static void remove_debug_file(struct sl811 *sl811)
 
 /*-------------------------------------------------------------------------*/
 
-static struct hc_driver sl811h_hc_driver = {
+static const struct hc_driver sl811h_hc_driver = {
 	.description =		hcd_name,
 	.hcd_priv_size =	sizeof(struct sl811),
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 05/11] usb: host: u132-hcd: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
                   ` (3 preceding siblings ...)
  2017-07-28 20:41 ` [PATCH 04/11] usb: host/sl811-hcd: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-28 20:41 ` [PATCH 06/11] usb: renesas_usbhs: " Julia Lawall
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel-janitors, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/host/u132-hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c
index 43d5293..c38855a 100644
--- a/drivers/usb/host/u132-hcd.c
+++ b/drivers/usb/host/u132-hcd.c
@@ -2941,7 +2941,7 @@ static int u132_bus_resume(struct usb_hcd *hcd)
 #define u132_bus_suspend NULL
 #define u132_bus_resume NULL
 #endif
-static struct hc_driver u132_hc_driver = {
+static const struct hc_driver u132_hc_driver = {
 	.description = hcd_name,
 	.hcd_priv_size = sizeof(struct u132),
 	.irq = NULL,


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 06/11] usb: renesas_usbhs: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
                   ` (4 preceding siblings ...)
  2017-07-28 20:41 ` [PATCH 05/11] usb: host: u132-hcd: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-31  7:07   ` Yoshihiro Shimoda
  2017-07-28 20:41 ` [PATCH 07/11] isp116x-hcd: " Julia Lawall
                   ` (4 subsequent siblings)
  10 siblings, 1 reply; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel-janitors, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/renesas_usbhs/mod_host.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/renesas_usbhs/mod_host.c b/drivers/usb/renesas_usbhs/mod_host.c
index dfb346e..e256351 100644
--- a/drivers/usb/renesas_usbhs/mod_host.c
+++ b/drivers/usb/renesas_usbhs/mod_host.c
@@ -1285,7 +1285,7 @@ static int usbhsh_bus_nop(struct usb_hcd *hcd)
 	return 0;
 }
 
-static struct hc_driver usbhsh_driver = {
+static const struct hc_driver usbhsh_driver = {
 	.description =		usbhsh_hcd_name,
 	.hcd_priv_size =	sizeof(struct usbhsh_hpriv),
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 07/11] isp116x-hcd: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
                   ` (5 preceding siblings ...)
  2017-07-28 20:41 ` [PATCH 06/11] usb: renesas_usbhs: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-28 20:41 ` [PATCH 08/11] USB: HWA: " Julia Lawall
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Olav Kongas; +Cc: kernel-janitors, Greg Kroah-Hartman, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/host/isp116x-hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c
index d089b3f..73fec38 100644
--- a/drivers/usb/host/isp116x-hcd.c
+++ b/drivers/usb/host/isp116x-hcd.c
@@ -1511,7 +1511,7 @@ static int isp116x_bus_resume(struct usb_hcd *hcd)
 
 #endif
 
-static struct hc_driver isp116x_hc_driver = {
+static const struct hc_driver isp116x_hc_driver = {
 	.description = hcd_name,
 	.product_desc = "ISP116x Host Controller",
 	.hcd_priv_size = sizeof(struct isp116x),


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 08/11] USB: HWA: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
                   ` (6 preceding siblings ...)
  2017-07-28 20:41 ` [PATCH 07/11] isp116x-hcd: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-28 20:41 ` [PATCH 09/11] USB: whci-hcd: " Julia Lawall
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel-janitors, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/host/hwa-hc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/hwa-hc.c b/drivers/usb/host/hwa-hc.c
index 1db0626..8658619 100644
--- a/drivers/usb/host/hwa-hc.c
+++ b/drivers/usb/host/hwa-hc.c
@@ -614,7 +614,7 @@ static int wa_fill_descr(struct wahc *wa)
 	return result;
 }
 
-static struct hc_driver hwahc_hc_driver = {
+static const struct hc_driver hwahc_hc_driver = {
 	.description = "hwa-hcd",
 	.product_desc = "Wireless USB HWA host controller",
 	.hcd_priv_size = sizeof(struct hwahc) - sizeof(struct usb_hcd),


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 09/11] USB: whci-hcd: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
                   ` (7 preceding siblings ...)
  2017-07-28 20:41 ` [PATCH 08/11] USB: HWA: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-28 20:41 ` [PATCH 10/11] greybus: usb: " Julia Lawall
  2017-07-28 20:41 ` [PATCH 11/11] c67x00-hcd: " Julia Lawall
  10 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel-janitors, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/host/whci/hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/whci/hcd.c b/drivers/usb/host/whci/hcd.c
index 5b3603c..cf84269 100644
--- a/drivers/usb/host/whci/hcd.c
+++ b/drivers/usb/host/whci/hcd.c
@@ -213,7 +213,7 @@ static void whc_endpoint_reset(struct usb_hcd *usb_hcd,
 }
 
 
-static struct hc_driver whc_hc_driver = {
+static const struct hc_driver whc_hc_driver = {
 	.description = "whci-hcd",
 	.product_desc = "Wireless host controller",
 	.hcd_priv_size = sizeof(struct whc) - sizeof(struct usb_hcd),


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 10/11] greybus: usb: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
                   ` (8 preceding siblings ...)
  2017-07-28 20:41 ` [PATCH 09/11] USB: whci-hcd: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  2017-07-31  4:37   ` [greybus-dev] " Viresh Kumar
  2017-07-31  7:14   ` Johan Hovold
  2017-07-28 20:41 ` [PATCH 11/11] c67x00-hcd: " Julia Lawall
  10 siblings, 2 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Johan Hovold
  Cc: kernel-janitors, Alex Elder, Greg Kroah-Hartman, greybus-dev,
	devel, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/staging/greybus/usb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/usb.c b/drivers/staging/greybus/usb.c
index ccadda0..f93a76d 100644
--- a/drivers/staging/greybus/usb.c
+++ b/drivers/staging/greybus/usb.c
@@ -139,7 +139,7 @@ static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex,
 	return ret;
 }
 
-static struct hc_driver usb_gb_hc_driver = {
+static const struct hc_driver usb_gb_hc_driver = {
 	.description = "greybus-hcd",
 	.product_desc = "Greybus USB Host Controller",
 	.hcd_priv_size = sizeof(struct gb_usb_device),


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 11/11] c67x00-hcd: constify hc_driver structures
  2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
                   ` (9 preceding siblings ...)
  2017-07-28 20:41 ` [PATCH 10/11] greybus: usb: " Julia Lawall
@ 2017-07-28 20:41 ` Julia Lawall
  10 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2017-07-28 20:41 UTC (permalink / raw)
  To: Peter Korsgaard
  Cc: kernel-janitors, Greg Kroah-Hartman, linux-usb, linux-kernel

The hc_driver structure is only passed as the first argument to
usb_create_hcd, which is declared as const.  Thus the hc_driver structure
itself can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/usb/c67x00/c67x00-hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/c67x00/c67x00-hcd.c b/drivers/usb/c67x00/c67x00-hcd.c
index c2d1396..30d3f34 100644
--- a/drivers/usb/c67x00/c67x00-hcd.c
+++ b/drivers/usb/c67x00/c67x00-hcd.c
@@ -305,7 +305,7 @@ static int c67x00_hcd_get_frame(struct usb_hcd *hcd)
 	return temp_val ? (temp_val - 1) : HOST_FRAME_MASK;
 }
 
-static struct hc_driver c67x00_hc_driver = {
+static const struct hc_driver c67x00_hc_driver = {
 	.description	= "c67x00-hcd",
 	.product_desc	= "Cypress C67X00 Host Controller",
 	.hcd_priv_size	= sizeof(struct c67x00_hcd),


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [greybus-dev] [PATCH 10/11] greybus: usb: constify hc_driver structures
  2017-07-28 20:41 ` [PATCH 10/11] greybus: usb: " Julia Lawall
@ 2017-07-31  4:37   ` Viresh Kumar
  2017-07-31  7:14   ` Johan Hovold
  1 sibling, 0 replies; 15+ messages in thread
From: Viresh Kumar @ 2017-07-31  4:37 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Johan Hovold, devel, Alex Elder, kernel-janitors, linux-kernel,
	greybus-dev

On 28-07-17, 22:41, Julia Lawall wrote:
> The hc_driver structure is only passed as the first argument to
> usb_create_hcd, which is declared as const.  Thus the hc_driver structure
> itself can be const.
> 
> Done with the help of Coccinelle.
> 
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
> 
> ---
>  drivers/staging/greybus/usb.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/greybus/usb.c b/drivers/staging/greybus/usb.c
> index ccadda0..f93a76d 100644
> --- a/drivers/staging/greybus/usb.c
> +++ b/drivers/staging/greybus/usb.c
> @@ -139,7 +139,7 @@ static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex,
>  	return ret;
>  }
>  
> -static struct hc_driver usb_gb_hc_driver = {
> +static const struct hc_driver usb_gb_hc_driver = {
>  	.description = "greybus-hcd",
>  	.product_desc = "Greybus USB Host Controller",
>  	.hcd_priv_size = sizeof(struct gb_usb_device),

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 06/11] usb: renesas_usbhs: constify hc_driver structures
  2017-07-28 20:41 ` [PATCH 06/11] usb: renesas_usbhs: " Julia Lawall
@ 2017-07-31  7:07   ` Yoshihiro Shimoda
  0 siblings, 0 replies; 15+ messages in thread
From: Yoshihiro Shimoda @ 2017-07-31  7:07 UTC (permalink / raw)
  To: Julia Lawall, Greg Kroah-Hartman
  Cc: kernel-janitors@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org

Hi,

> From: Julia Lawall
> Sent: Saturday, July 29, 2017 5:42 AM
> 
> The hc_driver structure is only passed as the first argument to
> usb_create_hcd, which is declared as const.  Thus the hc_driver structure
> itself can be const.
> 
> Done with the help of Coccinelle.
> 
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

Thank you for the patch!

Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Best regards,
Yoshihiro Shimoda


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 10/11] greybus: usb: constify hc_driver structures
  2017-07-28 20:41 ` [PATCH 10/11] greybus: usb: " Julia Lawall
  2017-07-31  4:37   ` [greybus-dev] " Viresh Kumar
@ 2017-07-31  7:14   ` Johan Hovold
  1 sibling, 0 replies; 15+ messages in thread
From: Johan Hovold @ 2017-07-31  7:14 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Johan Hovold, kernel-janitors, Alex Elder, Greg Kroah-Hartman,
	greybus-dev, devel, linux-kernel

On Fri, Jul 28, 2017 at 10:41:57PM +0200, Julia Lawall wrote:
> The hc_driver structure is only passed as the first argument to
> usb_create_hcd, which is declared as const.  Thus the hc_driver structure
> itself can be const.
> 
> Done with the help of Coccinelle.
> 
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

Acked-by: Johan Hovold <johan@kernel.org>

Thanks,
Johan

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-07-31  7:14 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-28 20:41 [PATCH 00/11] constify hc_driver structures Julia Lawall
2017-07-28 20:41 ` [PATCH 01/11] isp1362-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 02/11] usb: host: max3421-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 03/11] usb: r8a66597-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 04/11] usb: host/sl811-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 05/11] usb: host: u132-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 06/11] usb: renesas_usbhs: " Julia Lawall
2017-07-31  7:07   ` Yoshihiro Shimoda
2017-07-28 20:41 ` [PATCH 07/11] isp116x-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 08/11] USB: HWA: " Julia Lawall
2017-07-28 20:41 ` [PATCH 09/11] USB: whci-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 10/11] greybus: usb: " Julia Lawall
2017-07-31  4:37   ` [greybus-dev] " Viresh Kumar
2017-07-31  7:14   ` Johan Hovold
2017-07-28 20:41 ` [PATCH 11/11] c67x00-hcd: " Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).