ASoC: lm49453: Remove fs_rate from struct lm49453_priv
authorAxel Lin <axel.lin@ingics.com>
Thu, 25 Jun 2015 09:01:14 +0000 (17:01 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2015 13:00:20 +0000 (14:00 +0100)
fs_rate is only used in lm49453_hw_params() so don't need to store it in
private data.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lm49453.c

index 6600aa0a33dc578afb0361bf9cd3acc6584c7edb..5b4086d4109a4e6272faccf23b09ef925b280341 100644 (file)
@@ -188,7 +188,6 @@ static struct reg_default lm49453_reg_defs[] = {
 /* codec private data */
 struct lm49453_priv {
        struct regmap *regmap;
-       int fs_rate;
 };
 
 /* capture path controls */
@@ -1112,13 +1111,10 @@ static int lm49453_hw_params(struct snd_pcm_substream *substream,
                             struct snd_soc_dai *dai)
 {
        struct snd_soc_codec *codec = dai->codec;
-       struct lm49453_priv *lm49453 = snd_soc_codec_get_drvdata(codec);
        u16 clk_div = 0;
 
-       lm49453->fs_rate = params_rate(params);
-
        /* Setting DAC clock dividers based on substream sample rate. */
-       switch (lm49453->fs_rate) {
+       switch (params_rate(params)) {
        case 8000:
        case 16000:
        case 32000:
This page took 0.025616 seconds and 5 git commands to generate.