ASoC: tlv320aic32x4: Break out I2C support into separate module
authorJeremy McDermond <nh6z@nh6z.net>
Tue, 19 Apr 2016 00:24:05 +0000 (17:24 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2016 09:54:43 +0000 (10:54 +0100)
commit3bcfd222f6f0c8758f369ce0db23fa3287db59a6
tree1837c8e4651eae4fc36006fa6893114e79209309
parentec513886411e4fc47f98607a1bc79b72899710c4
ASoC: tlv320aic32x4: Break out I2C support into separate module

To prepare for abstracting adding SPI support, the I2C pieces needs to
be in its own moudle.  This patch moves common probe code into aic32x4_probe
and common removal code into aic32x4_remove.  It also creates a static
regmap config structure to be copied in the I2C specific driver.

Signed-off-by: Jeremy McDermond <nh6z@nh6z.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile
sound/soc/codecs/tlv320aic32x4-i2c.c [new file with mode: 0644]
sound/soc/codecs/tlv320aic32x4.c
sound/soc/codecs/tlv320aic32x4.h