Skip to content

Commit 97aad5c

Browse files
YueHaibingbroonie
authored andcommitted
ASoC: mediatek: mt2701: Fix -Wunused-const-variable warnings
sound/soc/mediatek/mt2701/mt2701-afe-common.h:66:27: warning: mt2701_afe_backup_list defined but not used [-Wunused-const-variable=] mt2701_afe_backup_list is only used in mt2701-afe-pcm.c, so just move the definition over there. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20190822143747.20944-1-yuehaibing@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent c101fb2 commit 97aad5c

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎sound/soc/mediatek/mt2701/mt2701-afe-common.h‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,6 @@ enum audio_base_clock {
6363
MT2701_BASE_CLK_NUM,
6464
};
6565

66-
static const unsigned int mt2701_afe_backup_list[] = {
67-
AUDIO_TOP_CON0,
68-
AUDIO_TOP_CON4,
69-
AUDIO_TOP_CON5,
70-
ASYS_TOP_CON,
71-
AFE_CONN0,
72-
AFE_CONN1,
73-
AFE_CONN2,
74-
AFE_CONN3,
75-
AFE_CONN15,
76-
AFE_CONN16,
77-
AFE_CONN17,
78-
AFE_CONN18,
79-
AFE_CONN19,
80-
AFE_CONN20,
81-
AFE_CONN21,
82-
AFE_CONN22,
83-
AFE_DAC_CON0,
84-
AFE_MEMIF_PBUF_SIZE,
85-
};
86-
8766
struct mt2701_i2s_data {
8867
int i2s_ctrl_reg;
8968
int i2s_asrc_fs_shift;

‎sound/soc/mediatek/mt2701/mt2701-afe-pcm.c‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,27 @@ static const struct mt2701_afe_rate mt2701_afe_i2s_rates[] = {
6060
{ .rate = 352800, .regvalue = 24 },
6161
};
6262

63+
static const unsigned int mt2701_afe_backup_list[] = {
64+
AUDIO_TOP_CON0,
65+
AUDIO_TOP_CON4,
66+
AUDIO_TOP_CON5,
67+
ASYS_TOP_CON,
68+
AFE_CONN0,
69+
AFE_CONN1,
70+
AFE_CONN2,
71+
AFE_CONN3,
72+
AFE_CONN15,
73+
AFE_CONN16,
74+
AFE_CONN17,
75+
AFE_CONN18,
76+
AFE_CONN19,
77+
AFE_CONN20,
78+
AFE_CONN21,
79+
AFE_CONN22,
80+
AFE_DAC_CON0,
81+
AFE_MEMIF_PBUF_SIZE,
82+
};
83+
6384
static int mt2701_dai_num_to_i2s(struct mtk_base_afe *afe, int num)
6485
{
6586
struct mt2701_afe_private *afe_priv = afe->platform_priv;

0 commit comments

Comments
 (0)