linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7 linux-next] sound: constify of_device_id array
@ 2015-03-18 16:48 Fabian Frederick
  2015-03-18 16:48 ` [PATCH 1/7 linux-next] ALSA: aoa: " Fabian Frederick
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Frederick @ 2015-03-18 16:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Oder Chiou, alsa-devel, Takashi Iwai, Liam Girdwood,
	Jaroslav Kysela, Fabian Frederick, Mark Brown, Bard Liao,
	Johannes Berg, linuxppc-dev

This small patchset adds const to of_device_id arrays in
sound branch.

Fabian Frederick (7):
  ALSA: aoa: constify of_device_id array
  ASoC: fsl: constify of_device_id array
  ASoC: kirkwood: constify of_device_id array
  ASoC: rt5631: constify of_device_id array
  ASoC: ak4554: constify of_device_id array
  ASoC: fsi: constify of_device_id array
  ASoC: rsnd: constify of_device_id array

 sound/aoa/soundbus/i2sbus/core.c    | 2 +-
 sound/soc/codecs/ak4554.c           | 2 +-
 sound/soc/codecs/rt5631.c           | 2 +-
 sound/soc/fsl/mpc5200_psc_ac97.c    | 2 +-
 sound/soc/fsl/mpc5200_psc_i2s.c     | 2 +-
 sound/soc/fsl/pcm030-audio-fabric.c | 2 +-
 sound/soc/kirkwood/kirkwood-i2s.c   | 2 +-
 sound/soc/sh/fsi.c                  | 4 ++--
 sound/soc/sh/rcar/core.c            | 2 +-
 9 files changed, 10 insertions(+), 10 deletions(-)

-- 
1.9.1

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

* [PATCH 1/7 linux-next] ALSA: aoa: constify of_device_id array
  2015-03-18 16:48 [PATCH 0/7 linux-next] sound: constify of_device_id array Fabian Frederick
@ 2015-03-18 16:48 ` Fabian Frederick
  2015-03-19 11:12   ` [alsa-devel] " Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Frederick @ 2015-03-18 16:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: alsa-devel, Takashi Iwai, Jaroslav Kysela, Fabian Frederick,
	Johannes Berg, linuxppc-dev

of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 sound/aoa/soundbus/i2sbus/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/aoa/soundbus/i2sbus/core.c b/sound/aoa/soundbus/i2sbus/core.c
index b9737fa..1cbf210 100644
--- a/sound/aoa/soundbus/i2sbus/core.c
+++ b/sound/aoa/soundbus/i2sbus/core.c
@@ -31,7 +31,7 @@ module_param(force, int, 0444);
 MODULE_PARM_DESC(force, "Force loading i2sbus even when"
 			" no layout-id property is present");
 
-static struct of_device_id i2sbus_match[] = {
+static const struct of_device_id i2sbus_match[] = {
 	{ .name = "i2s" },
 	{ }
 };
-- 
1.9.1

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

* Re: [alsa-devel] [PATCH 1/7 linux-next] ALSA: aoa: constify of_device_id array
  2015-03-18 16:48 ` [PATCH 1/7 linux-next] ALSA: aoa: " Fabian Frederick
@ 2015-03-19 11:12   ` Takashi Iwai
  0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2015-03-19 11:12 UTC (permalink / raw)
  To: Fabian Frederick; +Cc: Johannes Berg, alsa-devel, linuxppc-dev, linux-kernel

At Wed, 18 Mar 2015 17:48:56 +0100,
Fabian Frederick wrote:
> 
> of_device_id is always used as const.
> (See driver.of_match_table and open firmware functions)
> 
> Signed-off-by: Fabian Frederick <fabf@skynet.be>

Thanks, applied this one.
The rest ASoC patches are left to Mark.


Takashi

> ---
>  sound/aoa/soundbus/i2sbus/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/aoa/soundbus/i2sbus/core.c b/sound/aoa/soundbus/i2sbus/core.c
> index b9737fa..1cbf210 100644
> --- a/sound/aoa/soundbus/i2sbus/core.c
> +++ b/sound/aoa/soundbus/i2sbus/core.c
> @@ -31,7 +31,7 @@ module_param(force, int, 0444);
>  MODULE_PARM_DESC(force, "Force loading i2sbus even when"
>  			" no layout-id property is present");
>  
> -static struct of_device_id i2sbus_match[] = {
> +static const struct of_device_id i2sbus_match[] = {
>  	{ .name = "i2s" },
>  	{ }
>  };
> -- 
> 1.9.1
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

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

end of thread, other threads:[~2015-03-19 11:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-18 16:48 [PATCH 0/7 linux-next] sound: constify of_device_id array Fabian Frederick
2015-03-18 16:48 ` [PATCH 1/7 linux-next] ALSA: aoa: " Fabian Frederick
2015-03-19 11:12   ` [alsa-devel] " Takashi Iwai

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