mediatek: mt8195: afe-drv: fix fs cppcheck warning

Define fs as signed integer in afe_irq_config to fix cppcheck
warning.

Fixes: 1b7f8ed2a6(drivers: mtk: add afe driver for mtk mt8195)
Signed-off-by: YC Hung <yc.hung@mediatek.com>
This commit is contained in:
YC Hung 2022-03-14 12:59:06 +08:00 committed by Liam Girdwood
parent b5248054c5
commit 8b6fb345da
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ int afe_irq_clear(struct mtk_base_afe *afe, int id)
int afe_irq_config(struct mtk_base_afe *afe, int id, unsigned int rate, unsigned int period)
{
struct mtk_base_afe_irq *irq = &afe->irqs[id];
unsigned int fs;
int fs;
afe_reg_update_bits(afe, irq->irq_data->irq_cnt_reg,
irq->irq_data->irq_cnt_maskbit << irq->irq_data->irq_cnt_shift,