Commit fb1a6453 authored by Shawn Guo's avatar Shawn Guo Committed by Mark Brown

ASoC: fsl: correct get_dma_channel parameter name

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: default avatarShawn Guo <shawn.guo@linaro.org>
Acked-by: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 2c823d14
...@@ -273,7 +273,7 @@ static int codec_node_dev_name(struct device_node *np, char *buf, size_t len) ...@@ -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, static int get_dma_channel(struct device_node *ssi_np,
const char *compatible, const char *name,
struct snd_soc_dai_link *dai, struct snd_soc_dai_link *dai,
unsigned int *dma_channel_id, unsigned int *dma_channel_id,
unsigned int *dma_id) unsigned int *dma_id)
...@@ -283,7 +283,7 @@ static int get_dma_channel(struct device_node *ssi_np, ...@@ -283,7 +283,7 @@ static int get_dma_channel(struct device_node *ssi_np,
const u32 *iprop; const u32 *iprop;
int ret; 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"); "fsl,ssi-dma-channel");
if (!dma_channel_np) if (!dma_channel_np)
return -EINVAL; return -EINVAL;
......
...@@ -276,7 +276,7 @@ static int codec_node_dev_name(struct device_node *np, char *buf, size_t len) ...@@ -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, static int get_dma_channel(struct device_node *ssi_np,
const char *compatible, const char *name,
struct snd_soc_dai_link *dai, struct snd_soc_dai_link *dai,
unsigned int *dma_channel_id, unsigned int *dma_channel_id,
unsigned int *dma_id) unsigned int *dma_id)
...@@ -286,7 +286,7 @@ static int get_dma_channel(struct device_node *ssi_np, ...@@ -286,7 +286,7 @@ static int get_dma_channel(struct device_node *ssi_np,
const u32 *iprop; const u32 *iprop;
int ret; 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"); "fsl,ssi-dma-channel");
if (!dma_channel_np) if (!dma_channel_np)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment