linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] USB: dwc2: Use the correct style for SPDX License Identifier
@ 2020-03-28  9:48 Nishad Kamdar
  2020-04-09  8:34 ` Minas Harutyunyan
  0 siblings, 1 reply; 2+ messages in thread
From: Nishad Kamdar @ 2020-03-28  9:48 UTC (permalink / raw)
  To: Minas Harutyunyan, Greg Kroah-Hartman, Uwe Kleine-König,
	Pengutronix Kernel Team, Joe Perches
  Cc: linux-usb, linux-kernel

This patch corrects the SPDX License Identifier style in
header files related to DesignWare USB2 DRD Core Support.
For C header files Documentation/process/license-rules.rst
mandates C-like comments (opposed to C source files where
C++ style should be used).

Changes made by using a script provided by Joe Perches here:
https://lkml.org/lkml/2019/2/7/46.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com>
---
 drivers/usb/dwc2/core.h  | 2 +-
 drivers/usb/dwc2/debug.h | 2 +-
 drivers/usb/dwc2/hcd.h   | 2 +-
 drivers/usb/dwc2/hw.h    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h
index 99b0bdfe0012..668d1ad646a4 100644
--- a/drivers/usb/dwc2/core.h
+++ b/drivers/usb/dwc2/core.h
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
+/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
 /*
  * core.h - DesignWare HS OTG Controller common declarations
  *
diff --git a/drivers/usb/dwc2/debug.h b/drivers/usb/dwc2/debug.h
index a8c565b6bc34..47252c56d410 100644
--- a/drivers/usb/dwc2/debug.h
+++ b/drivers/usb/dwc2/debug.h
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * debug.h - Designware USB2 DRD controller debug header
  *
diff --git a/drivers/usb/dwc2/hcd.h b/drivers/usb/dwc2/hcd.h
index 1224fa9df604..ea02ee63ac6d 100644
--- a/drivers/usb/dwc2/hcd.h
+++ b/drivers/usb/dwc2/hcd.h
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
+/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
 /*
  * hcd.h - DesignWare HS OTG Controller host-mode declarations
  *
diff --git a/drivers/usb/dwc2/hw.h b/drivers/usb/dwc2/hw.h
index c4027bbcedec..864b76a0b954 100644
--- a/drivers/usb/dwc2/hw.h
+++ b/drivers/usb/dwc2/hw.h
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
+/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
 /*
  * hw.h - DesignWare HS OTG Controller hardware definitions
  *
-- 
2.17.1


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

* Re: [PATCH] USB: dwc2: Use the correct style for SPDX License Identifier
  2020-03-28  9:48 [PATCH] USB: dwc2: Use the correct style for SPDX License Identifier Nishad Kamdar
@ 2020-04-09  8:34 ` Minas Harutyunyan
  0 siblings, 0 replies; 2+ messages in thread
From: Minas Harutyunyan @ 2020-04-09  8:34 UTC (permalink / raw)
  To: Nishad Kamdar, Greg Kroah-Hartman, Uwe Kleine-König,
	Pengutronix Kernel Team, Joe Perches
  Cc: linux-usb, linux-kernel



On 3/28/2020 1:48 PM, Nishad Kamdar wrote:
> This patch corrects the SPDX License Identifier style in
> header files related to DesignWare USB2 DRD Core Support.
> For C header files Documentation/process/license-rules.rst
> mandates C-like comments (opposed to C source files where
> C++ style should be used).
> 
> Changes made by using a script provided by Joe Perches here:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lkml.org_lkml_2019_2_7_46&d=DwIBAg&c=DPL6_X_6JkXFx7AXWqB0tg&r=cQBKt4q-qzNVC53rNAwuwplH23V61rHQhhULvdLA0U8&m=0j9MsigL2x2AKk9HPbMC-dIRhfe2-TejlnFiyg-hjLo&s=hkvODF0-Bem5UE233QP8PJ8-E2NhnO3kdDi6euKBIMI&e= .
> 
> Suggested-by: Joe Perches <joe@perches.com>
> Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com>

Acked-by: Minas Harutyunyan <hminas@synopsys.com>

> ---
>   drivers/usb/dwc2/core.h  | 2 +-
>   drivers/usb/dwc2/debug.h | 2 +-
>   drivers/usb/dwc2/hcd.h   | 2 +-
>   drivers/usb/dwc2/hw.h    | 2 +-
>   4 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h
> index 99b0bdfe0012..668d1ad646a4 100644
> --- a/drivers/usb/dwc2/core.h
> +++ b/drivers/usb/dwc2/core.h
> @@ -1,4 +1,4 @@
> -// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
> +/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
>   /*
>    * core.h - DesignWare HS OTG Controller common declarations
>    *
> diff --git a/drivers/usb/dwc2/debug.h b/drivers/usb/dwc2/debug.h
> index a8c565b6bc34..47252c56d410 100644
> --- a/drivers/usb/dwc2/debug.h
> +++ b/drivers/usb/dwc2/debug.h
> @@ -1,4 +1,4 @@
> -// SPDX-License-Identifier: GPL-2.0
> +/* SPDX-License-Identifier: GPL-2.0 */
>   /*
>    * debug.h - Designware USB2 DRD controller debug header
>    *
> diff --git a/drivers/usb/dwc2/hcd.h b/drivers/usb/dwc2/hcd.h
> index 1224fa9df604..ea02ee63ac6d 100644
> --- a/drivers/usb/dwc2/hcd.h
> +++ b/drivers/usb/dwc2/hcd.h
> @@ -1,4 +1,4 @@
> -// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
> +/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
>   /*
>    * hcd.h - DesignWare HS OTG Controller host-mode declarations
>    *
> diff --git a/drivers/usb/dwc2/hw.h b/drivers/usb/dwc2/hw.h
> index c4027bbcedec..864b76a0b954 100644
> --- a/drivers/usb/dwc2/hw.h
> +++ b/drivers/usb/dwc2/hw.h
> @@ -1,4 +1,4 @@
> -// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
> +/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
>   /*
>    * hw.h - DesignWare HS OTG Controller hardware definitions
>    *
> 

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

end of thread, other threads:[~2020-04-09  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28  9:48 [PATCH] USB: dwc2: Use the correct style for SPDX License Identifier Nishad Kamdar
2020-04-09  8:34 ` Minas Harutyunyan

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).