linux/sound/soc/blackfin
Lars-Peter Clausen c924dc68f7 ASoC: ssm2602: Split SPI and I2C code into different modules
There are a few known (minor) problems with having the support code for both I2C
and SPI in the same module:
    * We need to be extra careful to make sure to not build the driver into the
      kernel if one of the subsystems is build as a module (Currently only I2C
      can be build as a module).
    * The module init path error handling is rather ugly. E.g. what should be
      done if either the SPI or the I2C driver fails to register? Most drivers
      that implement SPI and I2C in the same module currently fallback to
      undefined behavior in that case. Splitting the the driver into two
      modules, one for each bus allows the registration of the other bus driver
      to continue without problems if one of them fails.

This patch splits the ssm2602 driver into 3 modules. One core module that
implements the device logic, but is independent of the bus method used. And one
module for SPI and I2C each that registers the drivers and sets up the regmap
struct for the bus.

While we are at it also cleanup the include section of the ssm2602 driver and
remove unneeded includes.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
2014-02-18 10:07:33 +09:00
..
bf5xx-ac97-pcm.c ASoC: blackfin: Don't set unused struct snd_pcm_hardware fields 2013-12-23 12:49:36 +00:00
bf5xx-ac97.c ASoC: bf5xx-ac97: Fix compile error with SND_BF5XX_HAVE_COLD_RESET 2013-07-30 12:51:02 +01:00
bf5xx-ac97.h ASoC: bf5xx-ac97: Remove unused extern declaration 2013-07-30 13:01:09 +01:00
bf5xx-ad193x.c ASoC: blackfin: Switch bf5xx-ad193x from bf5xx-tdm to bf5xx-i2s 2013-05-30 12:33:40 +01:00
bf5xx-ad1836.c ASoC: blackfin: Switch bf5xx-ad1836 from bf5xx-tdm to bf5xx-i2s 2013-05-30 12:33:41 +01:00
bf5xx-ad1980.c ASoC: blackfin: Remove unused bf5xx-{i2s, tdm, ac97}-pcm.h 2013-05-30 12:33:40 +01:00
bf5xx-ad73311.c ASoC: blackfin: Remove unused bf5xx-{i2s, tdm, ac97}-pcm.h 2013-05-30 12:33:40 +01:00
bf5xx-i2s-pcm.c ASoC: blackfin: Don't set unused struct snd_pcm_hardware fields 2013-12-23 12:49:36 +00:00
bf5xx-i2s-pcm.h ASoC: blackfin: bf5xx-i2s: Add support for TDM mode 2013-05-30 12:33:40 +01:00
bf5xx-i2s.c ASoC: blackfin: Fix missing break 2013-11-13 16:47:42 +00:00
bf5xx-sport.c ASoC: blackfin: Use WARN_ON() instead of BUG_ON() 2013-11-06 10:26:09 +00:00
bf5xx-sport.h ASoC: blackfin: bf5xx-sport: Allow setting rx and tx mask independently 2013-05-30 12:33:40 +01:00
bf5xx-ssm2602.c ASoC: blackfin: Remove unused bf5xx-{i2s, tdm, ac97}-pcm.h 2013-05-30 12:33:40 +01:00
bf6xx-i2s.c ASoC: blackfin: Add missing break statement to bf6xx 2013-09-17 00:47:14 +01:00
bf6xx-sport.c ASoC: bfin: fix memory leak in sport3 controller driver 2012-08-09 14:08:59 +01:00
bf6xx-sport.h ASoC: add sport driver for bf6xx soc 2012-06-20 11:26:12 +01:00
bfin-eval-adau1373.c ASoC: blackfin: remove __dev* attributes 2012-12-10 00:29:39 +09:00
bfin-eval-adau1701.c ASoC: blackfin: remove __dev* attributes 2012-12-10 00:29:39 +09:00
bfin-eval-adav80x.c ASoC: blackfin: remove __dev* attributes 2012-12-10 00:29:39 +09:00
Kconfig ASoC: ssm2602: Split SPI and I2C code into different modules 2014-02-18 10:07:33 +09:00
Makefile ASoC: blackfin: Remove bf5xx-tdm driver 2013-05-30 12:33:41 +01:00