Skip to content

Commit e81bb58

Browse files
nunojsajic23
authored andcommitted
iio: adc: ad_sigma_delta: fix irq_flags on irq request
With commit 7b0c9f8 ("iio: adc: ad_sigma_delta: Add optional irq selection"), we can get the irq line from struct ad_sigma_delta_info instead of the spi device. However, in devm_ad_sd_probe_trigger(), when getting the irq_flags with irq_get_trigger_type() we are still using the spi device irq instead of the one used for devm_request_irq(). Fixes: 7b0c9f8 ("iio: adc: ad_sigma_delta: Add optional irq selection") Signed-off-by: Nuno Sa <[email protected]> Link: https://patch.msgid.link/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent de80af5 commit e81bb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/ad_sigma_delta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ EXPORT_SYMBOL_NS_GPL(ad_sd_validate_trigger, IIO_AD_SIGMA_DELTA);
569569
static int devm_ad_sd_probe_trigger(struct device *dev, struct iio_dev *indio_dev)
570570
{
571571
struct ad_sigma_delta *sigma_delta = iio_device_get_drvdata(indio_dev);
572-
unsigned long irq_flags = irq_get_trigger_type(sigma_delta->spi->irq);
572+
unsigned long irq_flags = irq_get_trigger_type(sigma_delta->irq_line);
573573
int ret;
574574

575575
if (dev != &sigma_delta->spi->dev) {

0 commit comments

Comments
 (0)