ASoC: Remove support for legacy snd_soc_platform IO
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 19 Aug 2014 13:51:29 +0000 (15:51 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 19 Aug 2014 15:59:47 +0000 (10:59 -0500)
There were never any actual users of this in upstream and by we have with
regmap a replacement in place, which should be used by new drivers.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/soc-core.c

index 8ebee30311e37e944bd5985503cc9617e91d5812..edbb0d72ab38c2926460457bc1c061f43886b17b 100644 (file)
@@ -890,9 +890,6 @@ struct snd_soc_platform_driver {
        /* platform stream compress ops */
        const struct snd_compr_ops *compr_ops;
 
-       /* platform IO - used for platform DAPM */
-       unsigned int (*read)(struct snd_soc_platform *, unsigned int);
-       int (*write)(struct snd_soc_platform *, unsigned int, unsigned int);
        int (*bespoke_trigger)(struct snd_pcm_substream *, int);
 };
 
index 96f286643ca16d28c0d7893f83f4bef684fd170e..2d7a9ecbb0e35adaa5606f01a3d7dccfbf6a91d5 100644 (file)
@@ -4151,24 +4151,6 @@ static void snd_soc_platform_drv_remove(struct snd_soc_component *component)
        platform->driver->remove(platform);
 }
 
-static int snd_soc_platform_drv_write(struct snd_soc_component *component,
-       unsigned int reg, unsigned int val)
-{
-       struct snd_soc_platform *platform = snd_soc_component_to_platform(component);
-
-       return platform->driver->write(platform, reg, val);
-}
-
-static int snd_soc_platform_drv_read(struct snd_soc_component *component,
-       unsigned int reg, unsigned int *val)
-{
-       struct snd_soc_platform *platform = snd_soc_component_to_platform(component);
-
-       *val = platform->driver->read(platform, reg);
-
-       return 0;
-}
-
 /**
  * snd_soc_add_platform - Add a platform to the ASoC core
  * @dev: The parent device for the platform
@@ -4205,10 +4187,6 @@ int snd_soc_add_platform(struct device *dev, struct snd_soc_platform *platform,
                platform->component.probe = snd_soc_platform_drv_probe;
        if (platform_drv->remove)
                platform->component.remove = snd_soc_platform_drv_remove;
-       if (platform_drv->write)
-               platform->component.write = snd_soc_platform_drv_write;
-       if (platform_drv->read)
-               platform->component.read = snd_soc_platform_drv_read;
 
 #ifdef CONFIG_DEBUG_FS
        platform->component.debugfs_prefix = "platform";