diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-01-15 03:05:10 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-15 06:37:48 -0500 |
commit | 2842aa719252bbec99869b03dfc42c52a307877a (patch) | |
tree | 931f5b9c13b5dbc59076f83457dc7f09a43b7010 | |
parent | 3ed6448c9509d2394532b2ed91db16fa1ef47447 (diff) |
ASoC: rsnd: remove unused rsnd_dai_id()
rsnd_dai_id() was not used. Let's remove it
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/core.c | 10 | ||||
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index b4c25d661e3d..487ddf78b8ee 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -479,16 +479,6 @@ static void rsnd_dai_disconnect(struct rsnd_mod *mod, | |||
479 | io->mod[mod->type] = NULL; | 479 | io->mod[mod->type] = NULL; |
480 | } | 480 | } |
481 | 481 | ||
482 | int rsnd_dai_id(struct rsnd_priv *priv, struct rsnd_dai *rdai) | ||
483 | { | ||
484 | int id = rdai - priv->rdai; | ||
485 | |||
486 | if ((id < 0) || (id >= rsnd_rdai_nr(priv))) | ||
487 | return -EINVAL; | ||
488 | |||
489 | return id; | ||
490 | } | ||
491 | |||
492 | struct rsnd_dai *rsnd_rdai_get(struct rsnd_priv *priv, int id) | 482 | struct rsnd_dai *rsnd_rdai_get(struct rsnd_priv *priv, int id) |
493 | { | 483 | { |
494 | if ((id < 0) || (id >= rsnd_rdai_nr(priv))) | 484 | if ((id < 0) || (id >= rsnd_rdai_nr(priv))) |
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 749b9779dd1e..28a06fce794e 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -317,7 +317,6 @@ struct rsnd_dai { | |||
317 | struct rsnd_dai *rsnd_rdai_get(struct rsnd_priv *priv, int id); | 317 | struct rsnd_dai *rsnd_rdai_get(struct rsnd_priv *priv, int id); |
318 | 318 | ||
319 | int rsnd_dai_is_play(struct rsnd_dai *rdai, struct rsnd_dai_stream *io); | 319 | int rsnd_dai_is_play(struct rsnd_dai *rdai, struct rsnd_dai_stream *io); |
320 | int rsnd_dai_id(struct rsnd_priv *priv, struct rsnd_dai *rdai); | ||
321 | #define rsnd_dai_get_platform_info(rdai) ((rdai)->info) | 320 | #define rsnd_dai_get_platform_info(rdai) ((rdai)->info) |
322 | 321 | ||
323 | void rsnd_dai_pointer_update(struct rsnd_dai_stream *io, int cnt); | 322 | void rsnd_dai_pointer_update(struct rsnd_dai_stream *io, int cnt); |