aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/pcm512x.h
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-03-06 22:44:08 -0500
committerMark Brown <broonie@linaro.org>2014-03-09 03:38:22 -0400
commit22066226b50e40591d67aef1d5525abce7515df2 (patch)
treee42d822fbf02203c6a0831d832a71a95100884e3 /sound/soc/codecs/pcm512x.h
parentf951f835a9719996e08e5c2932afc65ebfdbf47a (diff)
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 @@
17#ifndef _SND_SOC_PCM512X 17#ifndef _SND_SOC_PCM512X
18#define _SND_SOC_PCM512X 18#define _SND_SOC_PCM512X
19 19
20#include <linux/pm.h>
21#include <linux/regmap.h>
22
20#define PCM512x_VIRT_BASE 0x100 23#define PCM512x_VIRT_BASE 0x100
21#define PCM512x_PAGE_LEN 0x100 24#define PCM512x_PAGE_LEN 0x100
22#define PCM512x_PAGE_BASE(n) (PCM512x_VIRT_BASE + (PCM512x_PAGE_LEN * n)) 25#define PCM512x_PAGE_BASE(n) (PCM512x_VIRT_BASE + (PCM512x_PAGE_LEN * n))
@@ -159,4 +162,10 @@
159#define PCM512x_AGBR_SHIFT 0 162#define PCM512x_AGBR_SHIFT 0
160#define PCM512x_AGBL_SHIFT 4 163#define PCM512x_AGBL_SHIFT 4
161 164
165extern const struct dev_pm_ops pcm512x_pm_ops;
166extern const struct regmap_config pcm512x_regmap;
167
168int pcm512x_probe(struct device *dev, struct regmap *regmap);
169void pcm512x_remove(struct device *dev);
170
162#endif 171#endif