Skip to content

Commit

Permalink
ASoC: simple-card: use asoc_simple_xxx prefix
Browse files Browse the repository at this point in the history
simple-card driver is using asoc_simple_xxx() prefix.
simple_card_dai_link_of() should be
asoc_simple_card_dai_link_of().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Aug 29, 2014
1 parent 8ea2134 commit 2d82eeb
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions sound/soc/generic/simple-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ asoc_simple_card_sub_parse_of(struct device_node *np,
return 0;
}

static int simple_card_dai_link_of(struct device_node *node,
struct device *dev,
struct snd_soc_dai_link *dai_link,
struct simple_dai_props *dai_props,
bool is_top_level_node)
static int asoc_simple_card_dai_link_of(struct device_node *node,
struct device *dev,
struct snd_soc_dai_link *dai_link,
struct simple_dai_props *dai_props,
bool is_top_level_node)
{
struct device_node *np = NULL;
struct device_node *bitclkmaster = NULL;
Expand Down Expand Up @@ -337,16 +337,18 @@ static int asoc_simple_card_parse_of(struct device_node *node,
int i;
for (i = 0; (np = of_get_next_child(node, np)); i++) {
dev_dbg(dev, "\tlink %d:\n", i);
ret = simple_card_dai_link_of(np, dev, dai_link + i,
dai_props + i, false);
ret = asoc_simple_card_dai_link_of(np, dev,
dai_link + i,
dai_props + i,
false);
if (ret < 0) {
of_node_put(np);
return ret;
}
}
} else {
ret = simple_card_dai_link_of(node, dev, dai_link, dai_props,
true);
ret = asoc_simple_card_dai_link_of(node, dev,
dai_link, dai_props, true);
if (ret < 0)
return ret;
}
Expand Down

0 comments on commit 2d82eeb

Please sign in to comment.