diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-03-11 08:43:21 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-11 13:59:06 +0400 |
commit | 092eba937d948a76ff55825922eff4df010f6a17 (patch) | |
tree | 9ceee6b8bb67ec90bdb1d1f4dd812e3dfba8547d /sound/soc/codecs/wm8350.c | |
parent | 5d6be5aa6becc750c5c2aa0ef8f7209ce19aa328 (diff) | |
download | linux-092eba937d948a76ff55825922eff4df010f6a17.tar.xz |
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/wm8350.c')
-rw-r--r-- | sound/soc/codecs/wm8350.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index a183dcf3d5c1..757256bf7672 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c @@ -1505,9 +1505,7 @@ static int wm8350_codec_probe(struct snd_soc_codec *codec) if (ret != 0) return ret; - codec->control_data = wm8350->regmap; - - snd_soc_codec_set_cache_io(codec, 8, 16, SND_SOC_REGMAP); + snd_soc_codec_set_cache_io(codec, wm8350->regmap); /* Put the codec into reset if it wasn't already */ wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); |