diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-03-11 05:43:21 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-11 10:59:06 +0100 |
commit | 092eba937d948a76ff55825922eff4df010f6a17 (patch) | |
tree | 9ceee6b8bb67ec90bdb1d1f4dd812e3dfba8547d /sound/soc/codecs/88pm860x-codec.c | |
parent | ASoC: codec: Simplify ASoC probe code. (diff) | |
download | linux-092eba937d948a76ff55825922eff4df010f6a17.tar.xz linux-092eba937d948a76ff55825922eff4df010f6a17.zip |
ASoC: io: New signature for snd_soc_codec_set_cache_io()
Now that all users have been converted to regmap and the config.reg_bits
and config.val_bits can be setted by each user through regmap core API.
So these two params are redundant here.
Since the only control type that left is SND_SOC_REGMAP, so remove it. Drop
the control params and add struct regmap *regmap to simplify the code.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/88pm860x-codec.c')
-rw-r--r-- | sound/soc/codecs/88pm860x-codec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c index 647a72cda005..773b53366ada 100644 --- a/sound/soc/codecs/88pm860x-codec.c +++ b/sound/soc/codecs/88pm860x-codec.c @@ -1327,8 +1327,7 @@ static int pm860x_probe(struct snd_soc_codec *codec) pm860x->codec = codec; - codec->control_data = pm860x->regmap; - ret = snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP); + ret = snd_soc_codec_set_cache_io(codec, pm860x->regmap); if (ret) return ret; |