summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm_adsp.h
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2013-08-01 12:11:28 +0200
committerMark Brown <broonie@linaro.org>2013-08-01 12:58:46 +0200
commit92bb4c32708ee3e1d6eb0e185d678dab35152daf (patch)
tree9a9da804625ca03c0a9a45d74b6edf737ea84fad /sound/soc/codecs/wm_adsp.h
parentASoC: wm_adsp: Simplify kcontrol handling (diff)
downloadlinux-92bb4c32708ee3e1d6eb0e185d678dab35152daf.tar.xz
linux-92bb4c32708ee3e1d6eb0e185d678dab35152daf.zip
ASoC: wm_adsp: Sanitize parameter passing
No need to hold on to the `codec' pointer. We can use the `dsp' pointer and grab all the information we need from there. This makes the parameters for the functions a bit more sane and idiomatic. Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.h')
-rw-r--r--sound/soc/codecs/wm_adsp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index 64087fb1cdec..d018dea6254d 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -39,6 +39,7 @@ struct wm_adsp {
int type;
struct device *dev;
struct regmap *regmap;
+ struct snd_soc_card *card;
int base;
int sysclk_reg;