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:

committed by
Mark Brown

parent
81ad93ecfd
commit
92bb4c3270
@@ -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;
|
||||
|
Reference in New Issue
Block a user