Skip to content

Commit

Permalink
ASoC: remove rtd->num
Browse files Browse the repository at this point in the history
No one is using rtd->num. Let's remove it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87sesmb852.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
morimoto authored and broonie committed Nov 1, 2024
1 parent 742e622 commit c59db5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,6 @@ struct snd_soc_pcm_runtime {
struct dentry *debugfs_dpcm_root;
#endif

unsigned int num; /* REMOVE ME */
unsigned int id; /* 0-based and monotonic increasing */
struct list_head list; /* rtd list of the soc card */

Expand Down
1 change: 0 additions & 1 deletion sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,6 @@ static struct snd_soc_pcm_runtime *soc_new_pcm_runtime(
rtd->card = card;
rtd->dai_link = dai_link;
rtd->id = card->num_rtd++;
rtd->num = rtd->id; /* REMOVE ME */
rtd->pmdown_time = pmdown_time; /* default power off timeout */

/* see for_each_card_rtds */
Expand Down

0 comments on commit c59db5e

Please sign in to comment.