Skip to content

Commit

Permalink
ASoC: soc-dapm.c: cleanup dapm_widget_set_power()
Browse files Browse the repository at this point in the history
This patch cleanup dapm_widget_set_power() comment, parenthesis,
and 100 chars. It has no meaning, nothing will be changed.

Signed-off-by: Kuninori Morimoto <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
morimoto authored and broonie committed Oct 18, 2022
1 parent 1c9096f commit 0135ae7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1884,18 +1884,19 @@ static void dapm_widget_set_power(struct snd_soc_dapm_widget *w, bool power,

trace_snd_soc_dapm_widget_power(w, power);

/* If we changed our power state perhaps our neigbours changed
* also.
/*
* If we changed our power state perhaps our neigbours
* changed also.
*/
snd_soc_dapm_widget_for_each_source_path(w, path)
dapm_widget_set_peer_power(path->source, power, path->connect);

/* Supplies can't affect their outputs, only their inputs */
if (!w->is_supply) {
/*
* Supplies can't affect their outputs, only their inputs
*/
if (!w->is_supply)
snd_soc_dapm_widget_for_each_sink_path(w, path)
dapm_widget_set_peer_power(path->sink, power,
path->connect);
}
dapm_widget_set_peer_power(path->sink, power, path->connect);

if (power)
dapm_seq_insert(w, up_list, true);
Expand Down

0 comments on commit 0135ae7

Please sign in to comment.