|
@@ -46,7 +46,6 @@ static void ad7606_poll_bh_to_ring(struct work_struct *work_s)
|
|
|
struct ad7606_state *st = container_of(work_s, struct ad7606_state,
|
|
struct ad7606_state *st = container_of(work_s, struct ad7606_state,
|
|
|
poll_work);
|
|
poll_work);
|
|
|
struct iio_dev *indio_dev = iio_priv_to_dev(st);
|
|
struct iio_dev *indio_dev = iio_priv_to_dev(st);
|
|
|
- struct iio_buffer *ring = indio_dev->buffer;
|
|
|
|
|
s64 time_ns;
|
|
s64 time_ns;
|
|
|
__u8 *buf;
|
|
__u8 *buf;
|
|
|
int ret;
|
|
int ret;
|
|
@@ -84,7 +83,7 @@ static void ad7606_poll_bh_to_ring(struct work_struct *work_s)
|
|
|
if (indio_dev->scan_timestamp)
|
|
if (indio_dev->scan_timestamp)
|
|
|
*((s64 *)(buf + indio_dev->scan_bytes - sizeof(s64))) = time_ns;
|
|
*((s64 *)(buf + indio_dev->scan_bytes - sizeof(s64))) = time_ns;
|
|
|
|
|
|
|
|
- ring->access->store_to(indio_dev->buffer, buf, time_ns);
|
|
|
|
|
|
|
+ iio_push_to_buffer(indio_dev->buffer, buf, time_ns);
|
|
|
done:
|
|
done:
|
|
|
gpio_set_value(st->pdata->gpio_convst, 0);
|
|
gpio_set_value(st->pdata->gpio_convst, 0);
|
|
|
iio_trigger_notify_done(indio_dev->trig);
|
|
iio_trigger_notify_done(indio_dev->trig);
|