[alsa-devel] [PATCH 1/5] ASoC: rsnd: don't use io->mod[] directly
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Tue Oct 31 01:38:09 CET 2017
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
We have rsnd_io_to_mod() macro. Let's use it
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/sh/rcar/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 15d304d..1ef7003 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -407,7 +407,7 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
for (; *iterator < max; (*iterator)++) {
type = (array) ? array[*iterator] : *iterator;
- mod = io->mod[type];
+ mod = rsnd_io_to_mod(io, type);
if (!mod)
continue;
--
1.9.1
More information about the Alsa-devel
mailing list