ASoC: simple-card: code sync: tidyup simple_priv_to_xxx() macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 26 Aug 2016 03:06:23 +0000 (03:06 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 1 Sep 2016 20:22:59 +0000 (21:22 +0100)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card.c

index a4a39d41b63458326eaf62ab03d3fe2a394ad31a..8774d803f324b22d9a2fe72bcf4c1661aafb0e6b 100644 (file)
@@ -41,8 +41,8 @@ struct simple_card_data {
 };
 
 #define simple_priv_to_dev(priv) ((priv)->snd_card.dev)
-#define simple_priv_to_link(priv, i) ((priv)->snd_card.dai_link + i)
-#define simple_priv_to_props(priv, i) ((priv)->dai_props + i)
+#define simple_priv_to_link(priv, i) ((priv)->snd_card.dai_link + (i))
+#define simple_priv_to_props(priv, i) ((priv)->dai_props + (i))
 
 #define DAI    "sound-dai"
 #define CELL   "#sound-dai-cells"