Skip to content

Staging:iio: Cleanup and refactor pre multibuffer.

Jonathan Cameron linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14staging:iio:buffer trivial use of strtobool to remove dodgy equivalent.drivers/staging/iio/industrialio-buffer.c+9 -40 replies
2/14staging:iio:buffer: pull computation of scan length into a utility function.drivers/staging/iio/industrialio-buffer.c+20 -80 replies
3/14staging:iio: scan_index_timestamp move to iio_dev from bufferdrivers/staging/iio/buffer.h drivers/staging/iio/iio.h drivers/staging/iio/industrialio-buffer.c+5 -60 replies
4/14staging:iio: add caching of the number of bytes in a scan.drivers/staging/iio/accel/adis16201_ring.c drivers/staging/iio/accel/adis16203_ring.c drivers/staging/iio/accel/adis16204_ring.c +9 more+19 -281 reply
5/14staging:iio:adc:ad7192 make use of iio_sw_buffer_preenable.drivers/staging/iio/adc/ad7192.c+5 -170 replies
6/14staging:iio:adc:ad7298 use iio_sw_buffer_preenable to avoid code repitition.drivers/staging/iio/adc/ad7298.h drivers/staging/iio/adc/ad7298_ring.c+8 -170 replies
7/14staging:iio:adc:ad7476 use iio_sw_buffer_preenable instead of local version.drivers/staging/iio/adc/ad7476.h drivers/staging/iio/adc/ad7476_ring.c+3 -340 replies
8/14staging:iio:adc:ad7793 use iio_sw_buffer_preenable to avoid repitition.drivers/staging/iio/adc/ad7793.c+4 -170 replies
9/14staging:iio:adc:ad7887 make use of iio_sw_buffer_preenable.drivers/staging/iio/adc/ad7887.h drivers/staging/iio/adc/ad7887_ring.c+6 -180 replies
10/14staging:iio:adc:ad799x use iio_sw_buffer_preenable to avoid code repitiiondrivers/staging/iio/adc/ad799x.h drivers/staging/iio/adc/ad799x_ring.c+3 -200 replies
11/14staging:iio:meter:ad7758 use iio_sw_buffer_preenable to avoid code repitiondrivers/staging/iio/meter/ade7758_ring.c+5 -150 replies
12/14staging:iio:impedance-analyser make use of iio_sw_buffer_preenabledrivers/staging/iio/impedance-analyzer/ad5933.c+3 -80 replies
13/14staging:iio: Add caching of scan_timestamp to the core as well as buffers.drivers/staging/iio/accel/adis16201_ring.c drivers/staging/iio/accel/adis16203_ring.c drivers/staging/iio/accel/adis16204_ring.c +16 more+22 -200 replies
14/14staging:iio: pull out demux cleanup for a particular buffer.drivers/staging/iio/industrialio-buffer.c+13 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/14] Staging:iio: Cleanup and refactor pre multibuffer.

Sits on top of the series

[PATCH 00/16 V3] IIO: Make the value attribute optional for channels

This series consists of the first chunk of what was
[PATCH 1/4] staging:iio: make all buffer access pass through the buffer_list As Lars-Peter rightly pointed out that patch was a whole mess of different elements all bunged in together.

I believe this lot are all fairly uncontroversial unless I have trashed a driver by accident. (which is entirely plausible).

There are a few temporary frigs in here to ensure some of the cached values are correct before we put the real change in place. For example the scan_timestamp gets cached both in the core and in the buffers. For this change it would have made sense to drop it from the buffers but then we'd just end up putting it back again a few patches later.

Anyhow, please do take a look at what we have here. Some are trivial, but there are a good few driver reworks that could do with testing (as I'll almost guarantee I've messed something up ripping the original large patch apart!)

Thanks,

Jonathan Cameron

Jonathan Cameron (14):
staging:iio:buffer trivial use of strtobool to remove dodgy
equivalent.
staging:iio:buffer: pull computation of scan length into a utility
function.
staging:iio: scan_index_timestamp move to iio_dev from buffer staging:iio: add caching of the number of bytes in a scan. staging:iio:adc:ad7192 make use of iio_sw_buffer_preenable. staging:iio:adc:ad7298 use iio_sw_buffer_preenable to avoid code
repitition.
staging:iio:adc:ad7476 use iio_sw_buffer_preenable instead of local
version.
staging:iio:adc:ad7793 use iio_sw_buffer_preenable to avoid
repitition.
staging:iio:adc:ad7887 make use of iio_sw_buffer_preenable. staging:iio:adc:ad799x use iio_sw_buffer_preenable to avoid code
repitiion
staging:iio:meter:ad7758 use iio_sw_buffer_preenable to avoid code
repition
staging:iio:impedance-analyser make use of iio_sw_buffer_preenable staging:iio: Add caching of scan_timestamp to the core as well as
buffers.
staging:iio: pull out demux cleanup for a particular buffer.

 drivers/staging/iio/accel/adis16201_ring.c      |    5 +-
 drivers/staging/iio/accel/adis16203_ring.c      |    5 +-
 drivers/staging/iio/accel/adis16204_ring.c      |    5 +-
 drivers/staging/iio/accel/adis16209_ring.c      |    6 +-
 drivers/staging/iio/accel/adis16240_ring.c      |    5 +-
 drivers/staging/iio/accel/lis3l02dq_ring.c      |    6 +-
 drivers/staging/iio/adc/ad7192.c                |   24 ++------
 drivers/staging/iio/adc/ad7298.h                |    1 -
 drivers/staging/iio/adc/ad7298_ring.c           |   26 +++------
 drivers/staging/iio/adc/ad7476.h                |    1 -
 drivers/staging/iio/adc/ad7476_ring.c           |   38 +-----------
 drivers/staging/iio/adc/ad7606_ring.c           |    8 +--
 drivers/staging/iio/adc/ad7793.c                |   23 ++------
 drivers/staging/iio/adc/ad7887.h                |    1 -
 drivers/staging/iio/adc/ad7887_ring.c           |   25 ++------
 drivers/staging/iio/adc/ad799x.h                |    1 -
 drivers/staging/iio/adc/ad799x_ring.c           |   24 +-------
 drivers/staging/iio/adc/max1363_ring.c          |    4 +-
 drivers/staging/iio/buffer.h                    |    2 -
 drivers/staging/iio/gyro/adis16260_ring.c       |    5 +-
 drivers/staging/iio/iio.h                       |    6 ++
 drivers/staging/iio/iio_simple_dummy_buffer.c   |   11 +--
 drivers/staging/iio/impedance-analyzer/ad5933.c |   11 +---
 drivers/staging/iio/imu/adis16400_ring.c        |    4 +-
 drivers/staging/iio/industrialio-buffer.c       |   69 +++++++++++++++--------
 drivers/staging/iio/meter/ade7758_ring.c        |   22 ++-----
 26 files changed, 121 insertions(+), 217 deletions(-)