max11410.c (b8fa3e3833c14151a47ebebbc5427dcfe94bb407) | max11410.c (f700e55ef6ef9ec723164659ed4385900981c872) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * MAX11410 SPI ADC driver 4 * 5 * Copyright 2022 Analog Devices Inc. 6 */ 7#include <linux/bitfield.h> 8#include <linux/delay.h> --- 664 unchanged lines hidden (view full) --- 673}; 674 675static irqreturn_t max11410_interrupt(int irq, void *dev_id) 676{ 677 struct iio_dev *indio_dev = dev_id; 678 struct max11410_state *st = iio_priv(indio_dev); 679 680 if (iio_buffer_enabled(indio_dev)) | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * MAX11410 SPI ADC driver 4 * 5 * Copyright 2022 Analog Devices Inc. 6 */ 7#include <linux/bitfield.h> 8#include <linux/delay.h> --- 664 unchanged lines hidden (view full) --- 673}; 674 675static irqreturn_t max11410_interrupt(int irq, void *dev_id) 676{ 677 struct iio_dev *indio_dev = dev_id; 678 struct max11410_state *st = iio_priv(indio_dev); 679 680 if (iio_buffer_enabled(indio_dev)) |
681 iio_trigger_poll_chained(st->trig); | 681 iio_trigger_poll_nested(st->trig); |
682 else 683 complete(&st->completion); 684 685 return IRQ_HANDLED; 686}; 687 688static int max11410_parse_channels(struct max11410_state *st, 689 struct iio_dev *indio_dev) --- 362 unchanged lines hidden --- | 682 else 683 complete(&st->completion); 684 685 return IRQ_HANDLED; 686}; 687 688static int max11410_parse_channels(struct max11410_state *st, 689 struct iio_dev *indio_dev) --- 362 unchanged lines hidden --- |