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

Commit 492c0a18 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: dapm: Staticise dapm_mark_dirty()



The function is not called outside soc-dapm.c so there is no need for it
to be exported.

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 17282ba4
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -471,7 +471,6 @@ int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm,
void snd_soc_dapm_auto_nc_codec_pins(struct snd_soc_codec *codec);
void snd_soc_dapm_auto_nc_codec_pins(struct snd_soc_codec *codec);


/* Mostly internal - should not normally be used */
/* Mostly internal - should not normally be used */
void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason);
void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm);
void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm);


/* dapm path query */
/* dapm path query */
+1 −2
Original line number Original line Diff line number Diff line
@@ -146,7 +146,7 @@ static bool dapm_dirty_widget(struct snd_soc_dapm_widget *w)
	return !list_empty(&w->dirty);
	return !list_empty(&w->dirty);
}
}


void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason)
static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason)
{
{
	if (!dapm_dirty_widget(w)) {
	if (!dapm_dirty_widget(w)) {
		dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n",
		dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n",
@@ -154,7 +154,6 @@ void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason)
		list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty);
		list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty);
	}
	}
}
}
EXPORT_SYMBOL_GPL(dapm_mark_dirty);


void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm)
void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm)
{
{