diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-01-15 03:07:47 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-15 06:37:48 -0500 |
commit | 690602fcd85385ff325b65fe4bba32ceaf3c33a3 (patch) | |
tree | 48cd9bd3289654be1db421cc5f922e1b4dbd5603 /sound/soc/sh/rcar/src.c | |
parent | f708d944fee384961f5ab7df3463760099c9d69c (diff) |
ASoC: rsnd: replace rdai to priv in each function
Current rsnd driver's function requests rdai, but it is not used.
Adding priv is more reasonable. Let's replace it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar/src.c')
-rw-r--r-- | sound/soc/sh/rcar/src.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 31e19a00655f..0d136cdc4ada 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c | |||
@@ -294,10 +294,9 @@ static int rsnd_src_init(struct rsnd_mod *mod) | |||
294 | } | 294 | } |
295 | 295 | ||
296 | static int rsnd_src_quit(struct rsnd_mod *mod, | 296 | static int rsnd_src_quit(struct rsnd_mod *mod, |
297 | struct rsnd_dai *rdai) | 297 | struct rsnd_priv *priv) |
298 | { | 298 | { |
299 | struct rsnd_src *src = rsnd_mod_to_src(mod); | 299 | struct rsnd_src *src = rsnd_mod_to_src(mod); |
300 | struct rsnd_priv *priv = rsnd_mod_to_priv(mod); | ||
301 | struct device *dev = rsnd_priv_to_dev(priv); | 300 | struct device *dev = rsnd_priv_to_dev(priv); |
302 | 301 | ||
303 | rsnd_mod_hw_stop(mod); | 302 | rsnd_mod_hw_stop(mod); |
@@ -449,9 +448,8 @@ static int rsnd_src_set_convert_rate_gen1(struct rsnd_mod *mod) | |||
449 | } | 448 | } |
450 | 449 | ||
451 | static int rsnd_src_probe_gen1(struct rsnd_mod *mod, | 450 | static int rsnd_src_probe_gen1(struct rsnd_mod *mod, |
452 | struct rsnd_dai *rdai) | 451 | struct rsnd_priv *priv) |
453 | { | 452 | { |
454 | struct rsnd_priv *priv = rsnd_mod_to_priv(mod); | ||
455 | struct device *dev = rsnd_priv_to_dev(priv); | 453 | struct device *dev = rsnd_priv_to_dev(priv); |
456 | 454 | ||
457 | dev_dbg(dev, "%s[%d] (Gen1) is probed\n", | 455 | dev_dbg(dev, "%s[%d] (Gen1) is probed\n", |
@@ -461,7 +459,7 @@ static int rsnd_src_probe_gen1(struct rsnd_mod *mod, | |||
461 | } | 459 | } |
462 | 460 | ||
463 | static int rsnd_src_init_gen1(struct rsnd_mod *mod, | 461 | static int rsnd_src_init_gen1(struct rsnd_mod *mod, |
464 | struct rsnd_dai *rdai) | 462 | struct rsnd_priv *priv) |
465 | { | 463 | { |
466 | int ret; | 464 | int ret; |
467 | 465 | ||
@@ -485,7 +483,7 @@ static int rsnd_src_init_gen1(struct rsnd_mod *mod, | |||
485 | } | 483 | } |
486 | 484 | ||
487 | static int rsnd_src_start_gen1(struct rsnd_mod *mod, | 485 | static int rsnd_src_start_gen1(struct rsnd_mod *mod, |
488 | struct rsnd_dai *rdai) | 486 | struct rsnd_priv *priv) |
489 | { | 487 | { |
490 | int id = rsnd_mod_id(mod); | 488 | int id = rsnd_mod_id(mod); |
491 | 489 | ||
@@ -495,7 +493,7 @@ static int rsnd_src_start_gen1(struct rsnd_mod *mod, | |||
495 | } | 493 | } |
496 | 494 | ||
497 | static int rsnd_src_stop_gen1(struct rsnd_mod *mod, | 495 | static int rsnd_src_stop_gen1(struct rsnd_mod *mod, |
498 | struct rsnd_dai *rdai) | 496 | struct rsnd_priv *priv) |
499 | { | 497 | { |
500 | int id = rsnd_mod_id(mod); | 498 | int id = rsnd_mod_id(mod); |
501 | 499 | ||
@@ -691,9 +689,8 @@ static int rsnd_src_set_convert_timing_gen2(struct rsnd_mod *mod) | |||
691 | } | 689 | } |
692 | 690 | ||
693 | static int rsnd_src_probe_gen2(struct rsnd_mod *mod, | 691 | static int rsnd_src_probe_gen2(struct rsnd_mod *mod, |
694 | struct rsnd_dai *rdai) | 692 | struct rsnd_priv *priv) |
695 | { | 693 | { |
696 | struct rsnd_priv *priv = rsnd_mod_to_priv(mod); | ||
697 | struct rsnd_src *src = rsnd_mod_to_src(mod); | 694 | struct rsnd_src *src = rsnd_mod_to_src(mod); |
698 | struct device *dev = rsnd_priv_to_dev(priv); | 695 | struct device *dev = rsnd_priv_to_dev(priv); |
699 | int irq = src->info->irq; | 696 | int irq = src->info->irq; |
@@ -733,15 +730,15 @@ rsnd_src_probe_gen2_fail: | |||
733 | } | 730 | } |
734 | 731 | ||
735 | static int rsnd_src_remove_gen2(struct rsnd_mod *mod, | 732 | static int rsnd_src_remove_gen2(struct rsnd_mod *mod, |
736 | struct rsnd_dai *rdai) | 733 | struct rsnd_priv *priv) |
737 | { | 734 | { |
738 | rsnd_dma_quit(rsnd_mod_to_priv(mod), rsnd_mod_to_dma(mod)); | 735 | rsnd_dma_quit(priv, rsnd_mod_to_dma(mod)); |
739 | 736 | ||
740 | return 0; | 737 | return 0; |
741 | } | 738 | } |
742 | 739 | ||
743 | static int rsnd_src_init_gen2(struct rsnd_mod *mod, | 740 | static int rsnd_src_init_gen2(struct rsnd_mod *mod, |
744 | struct rsnd_dai *rdai) | 741 | struct rsnd_priv *priv) |
745 | { | 742 | { |
746 | int ret; | 743 | int ret; |
747 | 744 | ||
@@ -761,7 +758,7 @@ static int rsnd_src_init_gen2(struct rsnd_mod *mod, | |||
761 | } | 758 | } |
762 | 759 | ||
763 | static int rsnd_src_start_gen2(struct rsnd_mod *mod, | 760 | static int rsnd_src_start_gen2(struct rsnd_mod *mod, |
764 | struct rsnd_dai *rdai) | 761 | struct rsnd_priv *priv) |
765 | { | 762 | { |
766 | rsnd_dma_start(rsnd_mod_to_dma(mod)); | 763 | rsnd_dma_start(rsnd_mod_to_dma(mod)); |
767 | 764 | ||
@@ -769,7 +766,7 @@ static int rsnd_src_start_gen2(struct rsnd_mod *mod, | |||
769 | } | 766 | } |
770 | 767 | ||
771 | static int rsnd_src_stop_gen2(struct rsnd_mod *mod, | 768 | static int rsnd_src_stop_gen2(struct rsnd_mod *mod, |
772 | struct rsnd_dai *rdai) | 769 | struct rsnd_priv *priv) |
773 | { | 770 | { |
774 | int ret; | 771 | int ret; |
775 | 772 | ||