ASoC: rt1308: Convert headers to SPDX
Subsystems (3)
PATCH 3/3 ASoC: rt1308: Convert headers to SPDX
From: Shuming Fan <[email protected]>
Convert include and source files to SPDX.
--- sound/soc/codecs/rt1308.c | 4 +--- sound/soc/codecs/rt1308.h | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-)
sound/soc/codecs/rt1308.c +1 -3
@@ -1,12 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * rt1308.c -- RT1308 ALSA SoC amplifier component driver * * Copyright 2019 Realtek Semiconductor Corp. * Author: Derek Fang <[email protected]> * -* 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 <linux/module.h>
sound/soc/codecs/rt1308.h +2 -4
@@ -1,12 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* -* RT1308.h -- RT1308 ALSA SoC amplifier component driver +* rt1308.h -- RT1308 ALSA SoC amplifier component driver * * Copyright 2019 Realtek Semiconductor Corp. * Author: Derek Fang <[email protected]> * -* 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 _RT1308_H_
Signature · 1 line
2.22.0
Mark Brown
maintainersound/soc/codecs/rt1308.c line 4
Quoted 5 lines · On Fri, Jul 19, 2019 at 02:33:02PM +0800, [email protected] wrote:
sound/soc/codecs/rt1308.c +1
-0@@ -1,12 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * rt1308.c -- RT1308 ALSA SoC amplifier component driver *
Please convert the entire comment block to a C++ one so this looks more intentional.
A message that is not in the archive (sent off-list or not yet received): 10317AB43303BA4884D7AF9C2EBCFF4002BBE03D@RTITMBSVM07.realtek.com.tw
Mark Brown
maintainerQuoted 12 lines · Shuming [范書銘]
Quoted 10 lines · On Fri, Jul 19, 2019 at 02:33:02PM +0800, [email protected] wrote:
sound/soc/codecs/rt1308.c line 4
Quoted 6 lines
sound/soc/codecs/rt1308.c +1
-0@@ -1,12 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * rt1308.c -- RT1308 ALSA SoC amplifier component driver * Please convert the entire comment block to a C++ one so this looks more intentional.
I convert the comment like below.
Review
Quoted 2 lines
(quoted diff) +1
-1-// SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0 */
That's a C comment, not a C++ comment. I'm saying convert the whole block there to C++ rather than add one random line that's C++ next to some C comments.
Quoted 12 lines · Shuming [范書銘]
Quoted 10 lines
Quoted 10 lines · On Fri, Jul 19, 2019 at 02:33:02PM +0800, [email protected] wrote:
sound/soc/codecs/rt1308.c line 4
Quoted 6 lines
sound/soc/codecs/rt1308.c +1
-0@@ -1,12 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * rt1308.c -- RT1308 ALSA SoC amplifier component driver * Please convert the entire comment block to a C++ one so this looks more intentional.
Quoted 8 lines
Review
Quoted 3 lines
I convert the comment like below.
(quoted diff) +1
-1-// SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0 */That's a C comment, not a C++ comment. I'm saying convert the whole block there to C++ rather than add one random line that's C++ next to some C comments.
May I confirm what your point?
I convert the entire comment block to a C++ one like below. // SPDX-License-Identifier: GPL-2.0
-/*
- * rt1308.c -- RT1308 ALSA SoC amplifier component driver
- *
- * Copyright 2019 Realtek Semiconductor Corp.
- * Author: Derek Fang <[email protected]>
- *
- */
+//
+// rt1308.c -- RT1308 ALSA SoC amplifier component driver +//
+// Copyright 2019 Realtek Semiconductor Corp.
+// Author: Derek Fang <[email protected]> +//
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainerQuoted 6 lines · Shuming [范書銘]
May I confirm what your point?
I convert the entire comment block to a C++ one like below. // SPDX-License-Identifier: GPL-2.0(quoted diff) +0
-3-/* - * rt1308.c -- RT1308 ALSA SoC amplifier component driver - *
Review
Quoted 10 lines
(quoted diff) +6
-4- * Copyright 2019 Realtek Semiconductor Corp. - * Author: Derek Fang <[email protected]> - * - */ +// +// rt1308.c -- RT1308 ALSA SoC amplifier component driver +// +// Copyright 2019 Realtek Semiconductor Corp. +// Author: Derek Fang <[email protected]> +//
Yes.
Quoted 20 lines · Shuming [范書銘]
Quoted 6 lines
May I confirm what your point?
I convert the entire comment block to a C++ one like below. // SPDX-License-Identifier: GPL-2.0(quoted diff) +0
-1-/*Review
Quoted 10 lines
(quoted diff) +4
-6- * rt1308.c -- RT1308 ALSA SoC amplifier component driver - * - * Copyright 2019 Realtek Semiconductor Corp. - * Author: Derek Fang <[email protected]> - * - */ +// +// rt1308.c -- RT1308 ALSA SoC amplifier component driver // // +Copyright 2019 Realtek Semiconductor Corp. +// Author: Derek Fang <[email protected]> //Yes.
Ok, I will send the second version for these patches.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel