if (indio_dev->scan_timestamp)
*(s64 *)((u8 *)data + ALIGN(len, sizeof(s64)))
= pf->timestamp;
- iio_push_to_buffers(indio_dev, (u8 *)data);
+ iio_push_to_buffers(indio_dev, data);
kfree(data);
done:
*timestamp = pf->timestamp;
}
- iio_push_to_buffers(iio, (u8 *)lradc->buffer);
+ iio_push_to_buffers(iio, lradc->buffer);
iio_trigger_notify_done(iio->trig);
if (indio_dev->scan_timestamp)
*(s64 *)((u8 *)data + ALIGN(len, sizeof(s64)))
= iio_get_time_ns();
- iio_push_to_buffers(indio_dev, (u8 *)data);
+ iio_push_to_buffers(indio_dev, data);
kfree(data);
} else {
buf[0] = be16_to_cpu(buf[0]);
}
- iio_push_to_buffers(indio_dev, (u8 *)buf);
+ iio_push_to_buffers(indio_dev, buf);
} else {
/* no data available - try again later */
schedule_delayed_work(&st->work, st->poll_time_jiffies);
if (indio_dev->scan_timestamp)
dat64[1] = pf->timestamp;
- iio_push_to_buffers(indio_dev, (u8 *)dat64);
+ iio_push_to_buffers(indio_dev, dat64);
iio_trigger_notify_done(indio_dev->trig);