[PATCH 0/7 linux-next] sound: constify of_device_id array

STALE4204d

3 messages, 2 authors, 2015-03-19 · open the first message on its own page

[PATCH 0/7 linux-next] sound: constify of_device_id array

From: Fabian Frederick <hidden>
Date: 2015-03-18 16:49:23

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

[PATCH 1/7 linux-next] ALSA: aoa: constify of_device_id array

From: Fabian Frederick <hidden>
Date: 2015-03-18 16:51:22

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

Signed-off-by: Fabian Frederick <redacted>
---
 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

Re: [alsa-devel] [PATCH 1/7 linux-next] ALSA: aoa: constify of_device_id array

From: Takashi Iwai <hidden>
Date: 2015-03-19 11:12:08

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 <redacted>
Thanks, applied this one.
The rest ASoC patches are left to Mark.


Takashi
quoted hunk
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help