Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: loongson: change the type of variable irq to int

We use variable 'irq' to store the return value of fwnode_get_irq_byname().
A negative value indicates that the operation failed. If the type of 'irq'
is unsigned int, we never know if the operation failed.

Reported-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Closes: https://lore.kernel.org/loongarch/325dd825-6fa5-0ebc-4b7e-7acf2d2840e4@loongson.cn/
Signed-off-by: YingKun Meng <mengyingkun@loongson.cn>
Link: https://lore.kernel.org/r/20230619074649.3608726-1-mengyingkun@loongson.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

YingKun Meng and committed by
Mark Brown
1650e8a8 3e4ecd6c

+1 -1
+1 -1
sound/soc/loongson/loongson_i2s.h
··· 45 45 struct loongson_dma_data { 46 46 dma_addr_t dev_addr; /* device physical address for DMA */ 47 47 void __iomem *order_addr; /* DMA order register */ 48 - u32 irq; /* DMA irq */ 48 + int irq; /* DMA irq */ 49 49 }; 50 50 51 51 struct loongson_i2s {