Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [alsa-devel] [PATCH] ASoC: soc-component.h: tidyup for soc-component.h
@ 2019-09-19  3:44 Kuninori Morimoto
  2019-09-19 11:15 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Kuninori Morimoto @ 2019-09-19  3:44 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

soc-component.h already has SPDX License, GPL explanation
is not needed.
And it is included from soc.h only. No need to header-test.
This patch tidyup these.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
Mark

	this is for for-5.4

 include/Kbuild                | 1 +
 include/sound/soc-component.h | 6 ------
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/include/Kbuild b/include/Kbuild
index c38f0d4..c6909b5 100644
--- a/include/Kbuild
+++ b/include/Kbuild
@@ -1052,6 +1052,7 @@ header-test-			+= sound/soc-acpi-intel-match.h
 header-test-			+= sound/soc-dai.h
 header-test-			+= sound/soc-dapm.h
 header-test-			+= sound/soc-dpcm.h
+header-test-			+= sound/soc-component.h
 header-test-			+= sound/sof/control.h
 header-test-			+= sound/sof/dai-intel.h
 header-test-			+= sound/sof/dai.h
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 5d80b2e..a869199 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -3,16 +3,10 @@
  * soc-component.h
  *
  * Copyright (c) 2019 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
- *
- * 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 __SOC_COMPONENT_H
 #define __SOC_COMPONENT_H
 
-#include <sound/soc.h>
-
 /*
  * Component probe and remove ordering levels for components with runtime
  * dependencies.
-- 
2.7.4

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [alsa-devel] [PATCH] ASoC: soc-component.h: tidyup for soc-component.h
  2019-09-19  3:44 [alsa-devel] [PATCH] ASoC: soc-component.h: tidyup for soc-component.h Kuninori Morimoto
@ 2019-09-19 11:15 ` Mark Brown
  2019-09-20  0:19   ` Kuninori Morimoto
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2019-09-19 11:15 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Linux-ALSA


[-- Attachment #1.1: Type: text/plain, Size: 361 bytes --]

On Thu, Sep 19, 2019 at 12:44:50PM +0900, Kuninori Morimoto wrote:

> And it is included from soc.h only. No need to header-test.

We don't currently ever use this but it's still good practice to try to
make sure that headers can be independently included so it's better to
keep the include, it doens't do any harm at the minute and may help
someone in future.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [alsa-devel] [PATCH] ASoC: soc-component.h: tidyup for soc-component.h
  2019-09-19 11:15 ` Mark Brown
@ 2019-09-20  0:19   ` Kuninori Morimoto
  2019-09-20 11:08     ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Kuninori Morimoto @ 2019-09-20  0:19 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA


Hi Mark

> > And it is included from soc.h only. No need to header-test.
> 
> We don't currently ever use this but it's still good practice to try to
> make sure that headers can be independently included so it's better to
> keep the include, it doens't do any harm at the minute and may help
> someone in future.

Not 100% sure yet, but actually I'm thinking that
current some sound headers are very spaghetti code.
Someday, we want to cleanup it (this was one of for it).

Anyway, OK, let's keep soc.h.
But, the idea of removing GPL comment is still valid ?
Can I post v2 as "remove unneeded GPL comment for SPDX" ?

Thank you for your help !!
Best regards
---
Kuninori Morimoto
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [alsa-devel] [PATCH] ASoC: soc-component.h: tidyup for soc-component.h
  2019-09-20  0:19   ` Kuninori Morimoto
@ 2019-09-20 11:08     ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2019-09-20 11:08 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Linux-ALSA


[-- Attachment #1.1: Type: text/plain, Size: 448 bytes --]

On Fri, Sep 20, 2019 at 09:19:05AM +0900, Kuninori Morimoto wrote:

> Not 100% sure yet, but actually I'm thinking that
> current some sound headers are very spaghetti code.
> Someday, we want to cleanup it (this was one of for it).

Part of the reason they're the way they are at the minute is that
someone (IIRC Liam) got part way through splitting a lot of stuff out of
soc.h which was getting very big but didn't quite complete the
transition.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2019-09-20 11:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-19  3:44 [alsa-devel] [PATCH] ASoC: soc-component.h: tidyup for soc-component.h Kuninori Morimoto
2019-09-19 11:15 ` Mark Brown
2019-09-20  0:19   ` Kuninori Morimoto
2019-09-20 11:08     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox