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>
This commit is contained in:
Dimitris Papastamos
2013-08-01 11:11:28 +01:00
committed by Mark Brown
parent 81ad93ecfd
commit 92bb4c3270
2 changed files with 17 additions and 15 deletions

View File

@@ -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;