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: cs35l56: Accept values greater than 0 as IRQ numbers

IRQ lookup functions such as those in ACPI can return error values when
an IRQ is not defined. The i2c core driver converts the error codes to a
value of 0 and the SPI bus driver passes them unaltered to client device
drivers.

The cs35l56 driver should only accept positive non-zero values as IRQ
numbers.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Fixes: 8a731fd37f8b ("ASoC: cs35l56: Move utility functions to shared file")
Link: https://msgid.link/r/20240617135338.82006-1-simont@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Simon Trimmer and committed by
Mark Brown
3ec1428d 9f774c75

+1 -1
+1 -1
sound/soc/codecs/cs35l56-shared.c
··· 393 393 { 394 394 int ret; 395 395 396 - if (!irq) 396 + if (irq < 1) 397 397 return 0; 398 398 399 399 ret = devm_request_threaded_irq(cs35l56_base->dev, irq, NULL, cs35l56_irq,