mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
ASoC: soc-dapm: remove dev from snd_soc_dapm_context()
We can get dev via snd_soc_dapm_to_dev(). Remove it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87ikcxqgw9.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
40ff409eac
commit
cf0e8c555b
2 changed files with 1 additions and 6 deletions
|
|
@ -585,7 +585,6 @@ struct snd_soc_dapm_context {
|
|||
|
||||
bool idle_bias; /* Use BIAS_OFF instead of STANDBY when false */
|
||||
|
||||
struct device *dev; /* from parent - for debug */ /* REMOVE ME */
|
||||
struct snd_soc_component *component; /* parent component */
|
||||
struct snd_soc_card *card; /* parent card */
|
||||
|
||||
|
|
|
|||
|
|
@ -4862,12 +4862,8 @@ void snd_soc_dapm_init(struct snd_soc_dapm_context *dapm,
|
|||
dapm->component = component;
|
||||
dapm->bias_level = SND_SOC_BIAS_OFF;
|
||||
|
||||
if (component) {
|
||||
dapm->dev = component->dev;
|
||||
if (component)
|
||||
dapm->idle_bias = component->driver->idle_bias_on;
|
||||
} else {
|
||||
dapm->dev = card->dev;
|
||||
}
|
||||
|
||||
INIT_LIST_HEAD(&dapm->list);
|
||||
/* see for_each_card_dapms */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue