summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/pcm512x.h
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-03-07 07:44:08 +0400
committerMark Brown <broonie@linaro.org>2014-03-09 11:38:22 +0400
commit22066226b50e40591d67aef1d5525abce7515df2 (patch)
treee42d822fbf02203c6a0831d832a71a95100884e3 /sound/soc/codecs/pcm512x.h
parentf951f835a9719996e08e5c2932afc65ebfdbf47a (diff)
downloadlinux-22066226b50e40591d67aef1d5525abce7515df2.tar.xz
ASoC: pcm512x: Split out bus drivers
Move to the new style of defining the bus interfaces in separate modules in order to simplify dependencies. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/pcm512x.h')
-rw-r--r--sound/soc/codecs/pcm512x.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/codecs/pcm512x.h b/sound/soc/codecs/pcm512x.h
index ac4a52c9ccf4..6ee76aaca09a 100644
--- a/sound/soc/codecs/pcm512x.h
+++ b/sound/soc/codecs/pcm512x.h
@@ -17,6 +17,9 @@
#ifndef _SND_SOC_PCM512X
#define _SND_SOC_PCM512X
+#include <linux/pm.h>
+#include <linux/regmap.h>
+
#define PCM512x_VIRT_BASE 0x100
#define PCM512x_PAGE_LEN 0x100
#define PCM512x_PAGE_BASE(n) (PCM512x_VIRT_BASE + (PCM512x_PAGE_LEN * n))
@@ -159,4 +162,10 @@
#define PCM512x_AGBR_SHIFT 0
#define PCM512x_AGBL_SHIFT 4
+extern const struct dev_pm_ops pcm512x_pm_ops;
+extern const struct regmap_config pcm512x_regmap;
+
+int pcm512x_probe(struct device *dev, struct regmap *regmap);
+void pcm512x_remove(struct device *dev);
+
#endif