Skip to content

Drop the IIO_ST macro for setting scan_type elements.

Jonathan Cameron linux-iio 1 version Applied

Status from this message: Applied to the fixes-togreg branch of iio.git

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/24staging:iio:mag:hmc5843 fix incorrect endianness of channel as a result of missuse of the IIO_ST macro.drivers/staging/iio/magnetometer/hmc5843.c+6 -11 reply
2/24iio:imu:adis16400 fix pressure channel scan typedrivers/iio/imu/adis16400_core.c+6 -11 reply
3/24iio:adc:ad7887 Fix channel reported endianness from cpu to big endiandrivers/iio/adc/ad7887.c+14 -21 reply
4/24iio:accel:bma180 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/accel/bma180.c+6 -10 replies
5/24iio:mag:mag3110 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/magnetometer/mag3110.c+5 -10 replies
6/24iio:dac:ad5064 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5064.c+6 -10 replies
7/24iio:dac:ad5360 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5360.c+6 -10 replies
8/24iio:dac:ad5380 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5380.c+6 -10 replies
9/24iio:dac:ad5421 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5421.c+5 -10 replies
10/24iio:dac:ad5446 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5446.c+7 -20 replies
11/24iio:dac:ad5449 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5449.c+6 -10 replies
12/24iio:dac:ad5504 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5504.c+5 -10 replies
13/24iio:dac:ad5624r replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5624r_spi.c+6 -10 replies
14/24iio:dac:ad5686 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5686.c+7 -20 replies
15/24iio:dac:ad5755 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5755.c+6 -10 replies
16/24iio:dac:ad5764 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5764.c+6 -10 replies
17/24iio:dac:ad5791 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/dac/ad5791.c+7 -20 replies
18/24iio:dac:max517 drop specification of scan type as unused in this driver.drivers/iio/dac/max517.c+0 -10 replies
19/24iio:dac:mcp4725 drop specification of scan type as unused in this driver.drivers/iio/dac/mcp4725.c+0 -10 replies
20/24iio:light:adjd_s311 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/light/adjd_s311.c+6 -10 replies
21/24iio:light:tcs3472 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/iio/light/tcs3472.c+6 -10 replies
22/24staging:iio:ad7606 replaces IIO_ST macro with explicit entries to struct scan_typedrivers/staging/iio/adc/ad7606_core.c+6 -10 replies
23/24staging:iio:ad799x replaces IIO_ST macro with explicit entries to struct scan_typedrivers/staging/iio/adc/ad799x_core.c+7 -12 replies
24/24iio:drop IIO_ST macroinclude/linux/iio/iio.h+10 -61 reply

Reviews trailers per patch

None of the 24 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLars-Peter Clausen
SeriesA-b
1/24
2/24
3/24
4/24
5/24
6/24
7/24
8/24
9/24
10/24
11/24
12/24
13/24
14/24
15/24
16/24
17/24
18/24
19/24
20/24
21/24
22/24
23/24
24/24

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/24] Drop the IIO_ST macro for setting scan_type elements.

This macro is no longer fit for purpose given it doesn't allow the endianness of the element to be set. Missuse of the macro has also been responsible for a couple of bugs including some fixed in this series.

If everyone is happy I'll be apply the fixes through the fixes-togreg branch and follow up with the others after those have worked their way through.

Please do check the fixes in particular as I'm not entirely sure they are correct (particularly the ad7887 which gave me a headache on a train last night at the end of a very long day).

Thanks,

Jonathan

Jonathan Cameron (24):
staging:iio:mag:hmc5843 fix incorrect endianness of channel as a
result of missuse of the IIO_ST macro.
iio:imu:adis16400 fix pressure channel scan type iio:adc:ad7887 Fix channel reported endianness from cpu to big endian iio:accel:bma180 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:mag:mag3110 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5064 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5360 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5380 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5421 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5446 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5449 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5504 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5624r replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5686 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5755 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5764 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:ad5791 replaces IIO_ST macro with explicit entries to struct
scan_type
iio:dac:max517 drop specification of scan type as unused in this
driver.
iio:dac:mcp4725 drop specification of scan type as unused in this
driver.
iio:light:adjd_s311 replaces IIO_ST macro with explicit entries to
struct scan_type
iio:light:tcs3472 replaces IIO_ST macro with explicit entries to
struct scan_type
staging:iio:ad7606 replaces IIO_ST macro with explicit entries to
struct scan_type
staging:iio:ad799x replaces IIO_ST macro with explicit entries to
struct scan_type
iio:drop IIO_ST macro

 drivers/iio/accel/bma180.c                 |  7 ++++++-
 drivers/iio/adc/ad7887.c                   | 16 ++++++++++++++--
 drivers/iio/dac/ad5064.c                   |  7 ++++++-
 drivers/iio/dac/ad5360.c                   |  7 ++++++-
 drivers/iio/dac/ad5380.c                   |  7 ++++++-
 drivers/iio/dac/ad5421.c                   |  6 +++++-
 drivers/iio/dac/ad5446.c                   |  9 +++++++--
 drivers/iio/dac/ad5449.c                   |  7 ++++++-
 drivers/iio/dac/ad5504.c                   |  6 +++++-
 drivers/iio/dac/ad5624r_spi.c              |  7 ++++++-
 drivers/iio/dac/ad5686.c                   |  9 +++++++--
 drivers/iio/dac/ad5755.c                   |  7 ++++++-
 drivers/iio/dac/ad5764.c                   |  7 ++++++-
 drivers/iio/dac/ad5791.c                   |  9 +++++++--
 drivers/iio/dac/max517.c                   |  1 -
 drivers/iio/dac/mcp4725.c                  |  1 -
 drivers/iio/imu/adis16400_core.c           |  7 ++++++-
 drivers/iio/light/adjd_s311.c              |  7 ++++++-
 drivers/iio/light/tcs3472.c                |  7 ++++++-
 drivers/iio/magnetometer/mag3110.c         |  6 +++++-
 drivers/staging/iio/adc/ad7606_core.c      |  7 ++++++-
 drivers/staging/iio/adc/ad799x_core.c      |  8 +++++++-
 drivers/staging/iio/magnetometer/hmc5843.c |  7 ++++++-
 include/linux/iio/iio.h                    | 16 ++++++++++------
 24 files changed, 145 insertions(+), 33 deletions(-)
Signature · 1 line
1.8.4.2