mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 08:48:48 +00:00
ASoC: mediatek: mt8195: rename shadowed array
cppcheck warning: Checking sound/soc/mediatek/mt8195/mt8195-afe-pcm.c ... sound/soc/mediatek/mt8195/mt8195-afe-pcm.c:2884:35: style: Local variable 'irq_data' shadows outer variable [shadowVariable] struct mtk_base_irq_data const *irq_data; ^ sound/soc/mediatek/mt8195/mt8195-afe-pcm.c:2235:39: note: Shadowed declaration static const struct mtk_base_irq_data irq_data[MT8195_AFE_IRQ_NUM] = { ^ sound/soc/mediatek/mt8195/mt8195-afe-pcm.c:2884:35: note: Shadow variable struct mtk_base_irq_data const *irq_data; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211025185933.144327-7-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
33fb790fcc
commit
73983ad922
@ -2232,7 +2232,7 @@ static const struct mtk_base_memif_data memif_data[MT8195_AFE_MEMIF_NUM] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct mtk_base_irq_data irq_data[MT8195_AFE_IRQ_NUM] = {
|
||||
static const struct mtk_base_irq_data irq_data_array[MT8195_AFE_IRQ_NUM] = {
|
||||
[MT8195_AFE_IRQ_1] = {
|
||||
.id = MT8195_AFE_IRQ_1,
|
||||
.irq_cnt_reg = -1,
|
||||
@ -3100,7 +3100,7 @@ static int mt8195_afe_pcm_dev_probe(struct platform_device *pdev)
|
||||
return -ENOMEM;
|
||||
|
||||
for (i = 0; i < afe->irqs_size; i++)
|
||||
afe->irqs[i].irq_data = &irq_data[i];
|
||||
afe->irqs[i].irq_data = &irq_data_array[i];
|
||||
|
||||
/* init memif */
|
||||
afe->memif_size = MT8195_AFE_MEMIF_NUM;
|
||||
|
Loading…
x
Reference in New Issue
Block a user