diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-06-02 08:43:36 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-03 13:56:39 +0100 |
commit | b48e4aa48931030382d26c624cf4ae1c68d15666 (patch) | |
tree | 250270f940bc9d895d9444c42e9d4c79ede2d754 | |
parent | 2cdfe6520c939aff60bf78be2fc682e7635d0618 (diff) |
ASoC: rsnd: adg: tidyup rsnd_adg_get_clkin/out() parameter
set priv->adg before rsnd_adg_get_clkin/out() to be more simple code.
Nothing is changed, but is preparation for
next "ASoC: rsnd: adg: use more simple method for null_clk" patch
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87sg21i21j.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/adg.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index 390d5e22fbb8..af6132479593 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c @@ -412,9 +412,9 @@ static struct clk *rsnd_adg_null_clk_get(struct rsnd_priv *priv) return clk_hw_get_clk(priv->null_hw, NULL_CLK); } -static void rsnd_adg_get_clkin(struct rsnd_priv *priv, - struct rsnd_adg *adg) +static void rsnd_adg_get_clkin(struct rsnd_priv *priv) { + struct rsnd_adg *adg = priv->adg; struct device *dev = rsnd_priv_to_dev(priv); int i; @@ -430,9 +430,9 @@ static void rsnd_adg_get_clkin(struct rsnd_priv *priv, } } -static void rsnd_adg_get_clkout(struct rsnd_priv *priv, - struct rsnd_adg *adg) +static void rsnd_adg_get_clkout(struct rsnd_priv *priv) { + struct rsnd_adg *adg = priv->adg; struct clk *clk; struct device *dev = rsnd_priv_to_dev(priv); struct device_node *np = dev->of_node; @@ -644,11 +644,11 @@ int rsnd_adg_probe(struct rsnd_priv *priv) if (ret) return ret; - rsnd_adg_get_clkin(priv, adg); - rsnd_adg_get_clkout(priv, adg); - priv->adg = adg; + rsnd_adg_get_clkin(priv); + rsnd_adg_get_clkout(priv); + rsnd_adg_clk_enable(priv); rsnd_adg_clk_dbg_info(priv, NULL); |