/* The complex nature of the setting of the nuber of bytes per datum is due to this driver currently ensuring that the timestamp is stored at an 8 byte boundary.  */
static int max1363_ring_preenable(struct iio_dev *indio_dev)
/* The complex nature of the setting of the nuber of bytes per datum is due to this driver currently ensuring that the timestamp is stored at an 8 byte boundary.  */
static int max1363_ring_preenable(struct iio_dev *indio_dev)
{
	struct max1363_state *st = indio_dev->dev_data;
	size_t d_size;
	if (indio_dev->ring->access.set_bpd) {
		d_size = st->current_mode->numvals*2 + sizeof(s64);
		if (d_size % 8)
			d_size += 8 - (d_size % 8);
		indio_dev->ring->access.set_bpd(indio_dev->ring, d_size);
	}
	return 0;
}