01 Feb, 2013

1 commit

  • __iio_update_buffer updates the buffer's bytes_per_datum and length fields.
    But the only user of this function just passes in these exact fields, so the
    call basically looks like this:

    buffer->bytes_per_datum = buffer->bytes_per_datum;
    buffer->length = buffer->length;

    Which means it is a noop and can be removed. Also remove the function itself,
    since it is now unused.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     

08 Sep, 2012

1 commit


28 Aug, 2012

3 commits

  • This buffer implementation was missing poll support.

    Signed-off-by: Jonathan Cameron
    Tested-by: Lars-Peter Clausen
    Acked-by: srinivas pandruvada

    Jonathan Cameron
     
  • These two elements were originally in the patch
    iio:kfifo_buf Take advantage of the fixed record size used in IIO
    but Lars-Peter Clausen pointed out they should not have been
    so here they are.

    Signed-off-by: Jonathan Cameron
    Tested-by: Lars-Peter Clausen

    Jonathan Cameron
     
  • By bypassing the standard macros for setting up the kfifo we can
    take advantage of the fixed record size implementation without
    having to have a type to pass in (from which the size of an element
    is normally established).

    In IIO we have variable 'scans' as our records in which any element
    can be present or not. They do not however vary when we are
    actually filling or reading from the buffer. Thus we have a fixed
    record size whenever we are actually running. As setup and tear
    down are not in the fast path we can take the overhead of reinitializing
    the kfifo every time.

    Signed-off-by: Jonathan Cameron
    Tested-by: Lars-Peter Clausen

    Jonathan Cameron
     

26 Apr, 2012

1 commit

  • Take the core support + the kfifo buffer implentation out of
    staging. Whilst we are far from done in improving this subsystem
    it is now at a stage where the userspae interfaces (provided by
    the core) can be considered stable.

    Drivers will follow over a longer time scale.

    Signed-off-by: Jonathan Cameron
    Signed-off-by: Greg Kroah-Hartman

    Jonathan Cameron