]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: fsl: correct get_dma_channel parameter name
authorShawn Guo <shawn.guo@linaro.org>
Fri, 24 Feb 2012 14:09:36 +0000 (22:09 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Feb 2012 12:35:04 +0000 (12:35 +0000)
The second parameter of function get_dma_channel is actually a property
name rather than a compatible string, so rename it for less confusing.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/mpc8610_hpcd.c
sound/soc/fsl/p1022_ds.c

index 0ea4a5a96e06533e53ae95e5bebd60cdc16e7832..15e06e9d362c7e0d2cde05de054d20d7f4c9f748 100644 (file)
@@ -273,7 +273,7 @@ static int codec_node_dev_name(struct device_node *np, char *buf, size_t len)
 }
 
 static int get_dma_channel(struct device_node *ssi_np,
-                          const char *compatible,
+                          const char *name,
                           struct snd_soc_dai_link *dai,
                           unsigned int *dma_channel_id,
                           unsigned int *dma_id)
@@ -283,7 +283,7 @@ static int get_dma_channel(struct device_node *ssi_np,
        const u32 *iprop;
        int ret;
 
-       dma_channel_np = get_node_by_phandle_name(ssi_np, compatible,
+       dma_channel_np = get_node_by_phandle_name(ssi_np, name,
                                                  "fsl,ssi-dma-channel");
        if (!dma_channel_np)
                return -EINVAL;
index a5d4e80a9cf441140d017c8a0228770761999661..d32ec4646d25d93817d9887139e47261fb50a80d 100644 (file)
@@ -276,7 +276,7 @@ static int codec_node_dev_name(struct device_node *np, char *buf, size_t len)
 }
 
 static int get_dma_channel(struct device_node *ssi_np,
-                          const char *compatible,
+                          const char *name,
                           struct snd_soc_dai_link *dai,
                           unsigned int *dma_channel_id,
                           unsigned int *dma_id)
@@ -286,7 +286,7 @@ static int get_dma_channel(struct device_node *ssi_np,
        const u32 *iprop;
        int ret;
 
-       dma_channel_np = get_node_by_phandle_name(ssi_np, compatible,
+       dma_channel_np = get_node_by_phandle_name(ssi_np, name,
                                                  "fsl,ssi-dma-channel");
        if (!dma_channel_np)
                return -EINVAL;