Re: [RESEND] [PATCH] media: v4l: xilinx: Use SPDX-License-Identifier

2018-10-02 Thread Michal Simek
On 1.10.2018 23:36, Laurent Pinchart wrote:
> From: Dhaval Shah 
> 
> SPDX-License-Identifier is used for the Xilinx Video IP and
> related drivers.
> 
> Signed-off-by: Dhaval Shah 
> Reviewed-by: Laurent Pinchart 
> [Added drivers/media/platform/xilinx/Kconfig]
> [Added drivers/media/platform/xilinx/Makefile]
> [Added include/dt-bindings/media/xilinx-vip.h]
> Signed-off-by: Laurent Pinchart 
> ---
>  drivers/media/platform/xilinx/Kconfig   | 2 ++
>  drivers/media/platform/xilinx/Makefile  | 2 ++
>  drivers/media/platform/xilinx/xilinx-dma.c  | 5 +
>  drivers/media/platform/xilinx/xilinx-dma.h  | 5 +
>  drivers/media/platform/xilinx/xilinx-tpg.c  | 5 +
>  drivers/media/platform/xilinx/xilinx-vip.c  | 5 +
>  drivers/media/platform/xilinx/xilinx-vip.h  | 5 +
>  drivers/media/platform/xilinx/xilinx-vipp.c | 5 +
>  drivers/media/platform/xilinx/xilinx-vipp.h | 5 +
>  drivers/media/platform/xilinx/xilinx-vtc.c  | 5 +
>  drivers/media/platform/xilinx/xilinx-vtc.h  | 5 +
>  include/dt-bindings/media/xilinx-vip.h  | 5 +
>  12 files changed, 14 insertions(+), 40 deletions(-)
> 
> diff --git a/drivers/media/platform/xilinx/Kconfig 
> b/drivers/media/platform/xilinx/Kconfig
> index a5d21b7c6e0b..74ec8aaa5ae0 100644
> --- a/drivers/media/platform/xilinx/Kconfig
> +++ b/drivers/media/platform/xilinx/Kconfig
> @@ -1,3 +1,5 @@
> +# SPDX-License-Identifier: GPL-2.0
> +
>  config VIDEO_XILINX
>   tristate "Xilinx Video IP (EXPERIMENTAL)"
>   depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && OF && HAS_DMA
> diff --git a/drivers/media/platform/xilinx/Makefile 
> b/drivers/media/platform/xilinx/Makefile
> index e8a0f2a9f733..4cdc0b1ec7a5 100644
> --- a/drivers/media/platform/xilinx/Makefile
> +++ b/drivers/media/platform/xilinx/Makefile
> @@ -1,3 +1,5 @@
> +# SPDX-License-Identifier: GPL-2.0
> +
>  xilinx-video-objs += xilinx-dma.o xilinx-vip.o xilinx-vipp.o
>  
>  obj-$(CONFIG_VIDEO_XILINX) += xilinx-video.o
> diff --git a/drivers/media/platform/xilinx/xilinx-dma.c 
> b/drivers/media/platform/xilinx/xilinx-dma.c
> index 4ae9d38c9433..c9d5fdb2d407 100644
> --- a/drivers/media/platform/xilinx/xilinx-dma.c
> +++ b/drivers/media/platform/xilinx/xilinx-dma.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0
>  /*
>   * Xilinx Video DMA
>   *
> @@ -6,10 +7,6 @@
>   *
>   * Contacts: Hyun Kwon 
>   *   Laurent Pinchart 
> - *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
>   */
>  
>  #include 
> diff --git a/drivers/media/platform/xilinx/xilinx-dma.h 
> b/drivers/media/platform/xilinx/xilinx-dma.h
> index e95d136c153a..5aec4d17eb21 100644
> --- a/drivers/media/platform/xilinx/xilinx-dma.h
> +++ b/drivers/media/platform/xilinx/xilinx-dma.h
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0
>  /*
>   * Xilinx Video DMA
>   *
> @@ -6,10 +7,6 @@
>   *
>   * Contacts: Hyun Kwon 
>   *   Laurent Pinchart 
> - *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
>   */
>  
>  #ifndef __XILINX_VIP_DMA_H__
> diff --git a/drivers/media/platform/xilinx/xilinx-tpg.c 
> b/drivers/media/platform/xilinx/xilinx-tpg.c
> index 851d20dcd550..1399e71d42c2 100644
> --- a/drivers/media/platform/xilinx/xilinx-tpg.c
> +++ b/drivers/media/platform/xilinx/xilinx-tpg.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0
>  /*
>   * Xilinx Test Pattern Generator
>   *
> @@ -6,10 +7,6 @@
>   *
>   * Contacts: Hyun Kwon 
>   *   Laurent Pinchart 
> - *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
>   */
>  
>  #include 
> diff --git a/drivers/media/platform/xilinx/xilinx-vip.c 
> b/drivers/media/platform/xilinx/xilinx-vip.c
> index 311259129504..5f7efa9f093e 100644
> --- a/drivers/media/platform/xilinx/xilinx-vip.c
> +++ b/drivers/media/platform/xilinx/xilinx-vip.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0
>  /*
>   * Xilinx Video IP Core
>   *
> @@ -6,10 +7,6 @@
>   *
>   * Contacts: Hyun Kwon 
>   *   Laurent Pinchart 
> - *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
>   */
>  
>  #include 
> diff --git a/drivers/media/platform/xilinx/xilinx-vip.h 
> b/drivers/media/platform/xilinx/xilinx-vip.h
> index 42fee2026815..ba939dd52818 100644
> --- a/drivers/media/platform/xilinx/xilinx-vip.h
> +++ b/drivers/media/platform/xilinx/xilinx-vip.h
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0
>  /*
>   * Xilinx Video IP Core
>   *
> @@ -6,10 +7,6 

[RESEND] [PATCH] media: v4l: xilinx: Use SPDX-License-Identifier

2018-10-01 Thread Laurent Pinchart
From: Dhaval Shah 

SPDX-License-Identifier is used for the Xilinx Video IP and
related drivers.

Signed-off-by: Dhaval Shah 
Reviewed-by: Laurent Pinchart 
[Added drivers/media/platform/xilinx/Kconfig]
[Added drivers/media/platform/xilinx/Makefile]
[Added include/dt-bindings/media/xilinx-vip.h]
Signed-off-by: Laurent Pinchart 
---
 drivers/media/platform/xilinx/Kconfig   | 2 ++
 drivers/media/platform/xilinx/Makefile  | 2 ++
 drivers/media/platform/xilinx/xilinx-dma.c  | 5 +
 drivers/media/platform/xilinx/xilinx-dma.h  | 5 +
 drivers/media/platform/xilinx/xilinx-tpg.c  | 5 +
 drivers/media/platform/xilinx/xilinx-vip.c  | 5 +
 drivers/media/platform/xilinx/xilinx-vip.h  | 5 +
 drivers/media/platform/xilinx/xilinx-vipp.c | 5 +
 drivers/media/platform/xilinx/xilinx-vipp.h | 5 +
 drivers/media/platform/xilinx/xilinx-vtc.c  | 5 +
 drivers/media/platform/xilinx/xilinx-vtc.h  | 5 +
 include/dt-bindings/media/xilinx-vip.h  | 5 +
 12 files changed, 14 insertions(+), 40 deletions(-)

diff --git a/drivers/media/platform/xilinx/Kconfig 
b/drivers/media/platform/xilinx/Kconfig
index a5d21b7c6e0b..74ec8aaa5ae0 100644
--- a/drivers/media/platform/xilinx/Kconfig
+++ b/drivers/media/platform/xilinx/Kconfig
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 config VIDEO_XILINX
tristate "Xilinx Video IP (EXPERIMENTAL)"
depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && OF && HAS_DMA
diff --git a/drivers/media/platform/xilinx/Makefile 
b/drivers/media/platform/xilinx/Makefile
index e8a0f2a9f733..4cdc0b1ec7a5 100644
--- a/drivers/media/platform/xilinx/Makefile
+++ b/drivers/media/platform/xilinx/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 xilinx-video-objs += xilinx-dma.o xilinx-vip.o xilinx-vipp.o
 
 obj-$(CONFIG_VIDEO_XILINX) += xilinx-video.o
diff --git a/drivers/media/platform/xilinx/xilinx-dma.c 
b/drivers/media/platform/xilinx/xilinx-dma.c
index 4ae9d38c9433..c9d5fdb2d407 100644
--- a/drivers/media/platform/xilinx/xilinx-dma.c
+++ b/drivers/media/platform/xilinx/xilinx-dma.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Xilinx Video DMA
  *
@@ -6,10 +7,6 @@
  *
  * Contacts: Hyun Kwon 
  *   Laurent Pinchart 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #include 
diff --git a/drivers/media/platform/xilinx/xilinx-dma.h 
b/drivers/media/platform/xilinx/xilinx-dma.h
index e95d136c153a..5aec4d17eb21 100644
--- a/drivers/media/platform/xilinx/xilinx-dma.h
+++ b/drivers/media/platform/xilinx/xilinx-dma.h
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Xilinx Video DMA
  *
@@ -6,10 +7,6 @@
  *
  * Contacts: Hyun Kwon 
  *   Laurent Pinchart 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #ifndef __XILINX_VIP_DMA_H__
diff --git a/drivers/media/platform/xilinx/xilinx-tpg.c 
b/drivers/media/platform/xilinx/xilinx-tpg.c
index 851d20dcd550..1399e71d42c2 100644
--- a/drivers/media/platform/xilinx/xilinx-tpg.c
+++ b/drivers/media/platform/xilinx/xilinx-tpg.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Xilinx Test Pattern Generator
  *
@@ -6,10 +7,6 @@
  *
  * Contacts: Hyun Kwon 
  *   Laurent Pinchart 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #include 
diff --git a/drivers/media/platform/xilinx/xilinx-vip.c 
b/drivers/media/platform/xilinx/xilinx-vip.c
index 311259129504..5f7efa9f093e 100644
--- a/drivers/media/platform/xilinx/xilinx-vip.c
+++ b/drivers/media/platform/xilinx/xilinx-vip.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Xilinx Video IP Core
  *
@@ -6,10 +7,6 @@
  *
  * Contacts: Hyun Kwon 
  *   Laurent Pinchart 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #include 
diff --git a/drivers/media/platform/xilinx/xilinx-vip.h 
b/drivers/media/platform/xilinx/xilinx-vip.h
index 42fee2026815..ba939dd52818 100644
--- a/drivers/media/platform/xilinx/xilinx-vip.h
+++ b/drivers/media/platform/xilinx/xilinx-vip.h
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Xilinx Video IP Core
  *
@@ -6,10 +7,6 @@
  *
  * Contacts: Hyun Kwon 
  *   Laurent Pinchart 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #ifndef __XILINX_VIP_H__
diff --git