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:
Kuninori Morimoto 2026-01-20 00:14:46 +00:00 committed by Mark Brown
parent 40ff409eac
commit cf0e8c555b
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 1 additions and 6 deletions

View file

@ -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 */

View file

@ -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 */