10 #include <linux/device.h>
11 #include <linux/kernel.h>
12 #include <linux/slab.h>
25 static irqreturn_t ad7606_trigger_handler_th_bh(
int irq,
void *
p)
44 static void ad7606_poll_bh_to_ring(
struct work_struct *work_s)
48 struct iio_dev *indio_dev = iio_priv_to_dev(st);
57 if (gpio_is_valid(st->
pdata->gpio_frstdata)) {
58 ret = st->
bops->read_block(st->
dev, 1, buf);
70 ret = st->
bops->read_block(st->
dev,
71 st->
chip_info->num_channels - 1, buf + 2);
75 ret = st->
bops->read_block(st->
dev,
81 time_ns = iio_get_time_ns();
100 &ad7606_trigger_handler_th_bh, &ad7606_trigger_handler_th_bh,