mirror of https://gitee.com/openkylin/linux.git
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: Shawn Guo <shawn.guo@linaro.org> Acked-by: Timur Tabi <timur@freescale.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
2c823d14bf
commit
fb1a6453bc
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue