diff options
author | Jeremy McDermond <nh6z@nh6z.net> | 2016-04-18 17:24:05 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-04-19 10:54:43 +0100 |
commit | 3bcfd222f6f0c8758f369ce0db23fa3287db59a6 (patch) | |
tree | 1837c8e4651eae4fc36006fa6893114e79209309 /sound/soc/codecs/tlv320aic32x4.h | |
parent | ec513886411e4fc47f98607a1bc79b72899710c4 (diff) | |
download | op-kernel-dev-3bcfd222f6f0c8758f369ce0db23fa3287db59a6.zip op-kernel-dev-3bcfd222f6f0c8758f369ce0db23fa3287db59a6.tar.gz |
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>
Diffstat (limited to 'sound/soc/codecs/tlv320aic32x4.h')
-rw-r--r-- | sound/soc/codecs/tlv320aic32x4.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4.h b/sound/soc/codecs/tlv320aic32x4.h index 995f033..a197dd5 100644 --- a/sound/soc/codecs/tlv320aic32x4.h +++ b/sound/soc/codecs/tlv320aic32x4.h @@ -10,6 +10,13 @@ #ifndef _TLV320AIC32X4_H #define _TLV320AIC32X4_H +struct device; +struct regmap_config; + +extern const struct regmap_config aic32x4_regmap_config; +int aic32x4_probe(struct device *dev, struct regmap *regmap); +int aic32x4_remove(struct device *dev); + /* tlv320aic32x4 register space (in decimal to match datasheet) */ #define AIC32X4_PAGE1 128 |