diff options
author | Mark Brown <broonie@linaro.org> | 2014-02-19 19:06:30 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 23:20:42 -0500 |
commit | 56b2f349137bfdd23e498f12a97fe3d6139c097b (patch) | |
tree | 94f0632a5826aab8444f24a0d2a9c7ea00672dfa /sound/soc/soc-io.c | |
parent | 0e7cb145122f294aafc8bb1fa7c0d3544216d2cf (diff) |
ASoC: io: Remove SND_SOC_I2C
Now that all users have been converted to regmap we can eliminate the ASoC
level wrapper for I2C I/O reducing the amount of duplicated functionality.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/soc-io.c')
-rw-r--r-- | sound/soc/soc-io.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c index 3a0d99edf030..add99e2f7996 100644 --- a/sound/soc/soc-io.c +++ b/sound/soc/soc-io.c | |||
@@ -99,13 +99,6 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, | |||
99 | config.val_bits = data_bits; | 99 | config.val_bits = data_bits; |
100 | 100 | ||
101 | switch (control) { | 101 | switch (control) { |
102 | #if IS_ENABLED(CONFIG_REGMAP_I2C) | ||
103 | case SND_SOC_I2C: | ||
104 | codec->control_data = regmap_init_i2c(to_i2c_client(codec->dev), | ||
105 | &config); | ||
106 | break; | ||
107 | #endif | ||
108 | |||
109 | case SND_SOC_REGMAP: | 102 | case SND_SOC_REGMAP: |
110 | /* Device has made its own regmap arrangements */ | 103 | /* Device has made its own regmap arrangements */ |
111 | codec->using_regmap = true; | 104 | codec->using_regmap = true; |