ASoC: io: Remove SND_SOC_I2C
authorMark Brown <broonie@linaro.org>
Thu, 20 Feb 2014 00:06:30 +0000 (09:06 +0900)
committerMark Brown <broonie@linaro.org>
Sun, 23 Feb 2014 04:20:42 +0000 (13:20 +0900)
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>
include/sound/soc.h
sound/soc/soc-io.c

index 6197ba0642cc98df6c9c81663289866a154cced6..6d0b6cb9c484cdff9deac8d45581f54e214c8374 100644 (file)
@@ -341,7 +341,6 @@ typedef int (*hw_write_t)(void *,const char* ,int);
 extern struct snd_ac97_bus_ops *soc_ac97_ops;
 
 enum snd_soc_control_type {
-       SND_SOC_I2C = 1,
        SND_SOC_REGMAP,
 };
 
index 3a0d99edf030607918bc13e501b05f798bc3d16d..add99e2f7996e38fc71ba578583878fb0dddae46 100644 (file)
@@ -99,13 +99,6 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
        config.val_bits = data_bits;
 
        switch (control) {
-#if IS_ENABLED(CONFIG_REGMAP_I2C)
-       case SND_SOC_I2C:
-               codec->control_data = regmap_init_i2c(to_i2c_client(codec->dev),
-                                                     &config);
-               break;
-#endif
-
        case SND_SOC_REGMAP:
                /* Device has made its own regmap arrangements */
                codec->using_regmap = true;
This page took 0.050011 seconds and 5 git commands to generate.