Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a93f8e76 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown
Browse files

ASoC: core: Remove unused "n_widgets" field from snd_soc_dapm struct



Commit 497098be ("ASoC: dapm: Remove bodges for no-widget CODECs") removed the
last user of the n_widgets field. Currently it is incremented for each widget
added, but the value is never used, so we can remove it.

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent e383c467
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -565,7 +565,6 @@ struct snd_soc_dapm_update {


/* DAPM context */
/* DAPM context */
struct snd_soc_dapm_context {
struct snd_soc_dapm_context {
	int n_widgets; /* number of widgets in this context */
	enum snd_soc_bias_level bias_level;
	enum snd_soc_bias_level bias_level;
	enum snd_soc_bias_level suspend_bias_level;
	enum snd_soc_bias_level suspend_bias_level;
	struct delayed_work delayed_work;
	struct delayed_work delayed_work;
+0 −1
Original line number Original line Diff line number Diff line
@@ -3123,7 +3123,6 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
		break;
		break;
	}
	}


	dapm->n_widgets++;
	w->dapm = dapm;
	w->dapm = dapm;
	w->codec = dapm->codec;
	w->codec = dapm->codec;
	w->platform = dapm->platform;
	w->platform = dapm->platform;