Skip to content

Commit

Permalink
ASoC: io: Remove SPI support
Browse files Browse the repository at this point in the history
All ASoC CODEC drivers that use SPI have now been converted to use regmap
so we can delete SND_SOC_SPI, preventing any new users being added.

Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed Feb 16, 2014
1 parent 38dbfb5 commit 7b80300
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ extern struct snd_ac97_bus_ops *soc_ac97_ops;

enum snd_soc_control_type {
SND_SOC_I2C = 1,
SND_SOC_SPI,
SND_SOC_REGMAP,
};

Expand Down
7 changes: 0 additions & 7 deletions sound/soc/soc-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
break;
#endif

#if IS_ENABLED(CONFIG_REGMAP_SPI)
case SND_SOC_SPI:
codec->control_data = regmap_init_spi(to_spi_device(codec->dev),
&config);
break;
#endif

case SND_SOC_REGMAP:
/* Device has made its own regmap arrangements */
codec->using_regmap = true;
Expand Down

0 comments on commit 7b80300

Please sign in to comment.