11 #include <linux/kernel.h>
12 #include <linux/slab.h>
29 static int ad7887_ring_preenable(
struct iio_dev *indio_dev)
48 case ((1 << 1) | (1 << 0)):
56 static int ad7887_ring_postdisable(
struct iio_dev *indio_dev)
70 static irqreturn_t ad7887_trigger_handler(
int irq,
void *
p)
81 st->
chip_info->channel[0].scan_type.storagebits / 8;
91 time_ns = iio_get_time_ns();
93 memcpy(buf, st->data, bytes);
96 &time_ns,
sizeof(time_ns));
107 .preenable = &ad7887_ring_preenable,
110 .postdisable = &ad7887_ring_postdisable,
116 &ad7887_trigger_handler, &ad7887_ring_setup_ops);