static int iio_set_bytes_per_datum_kfifo(struct iio_buffer *r, size_t bpd) { if (r->bytes_per_datum != bpd) { r->bytes_per_datum = bpd; iio_mark_update_needed_kfifo(r); } return 0; }
static int iio_set_length_kfifo(struct iio_buffer *r, int length) { if (r->length != length) { r->length = length; iio_mark_update_needed_kfifo(r); } return 0; }
static int iio_set_length_kfifo(struct iio_buffer *r, int length) { /* Avoid an invalid state */ if (length < 2) length = 2; if (r->length != length) { r->length = length; iio_mark_update_needed_kfifo(r); } return 0; }