Skip to content

IIO: Tidy up parameters to regmap_bulk_* calls

[email protected] linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6iio:accel:mxc4005: Drop unnecessary explicit casts in regmap_bulk_read callsdrivers/iio/accel/mxc4005.c+2 -21 reply
2/6iio:chemical:atlas-sensor: Drop unnecessary explicit casts in regmap_bulk_read callsdrivers/iio/chemical/atlas-sensor.c+3 -41 reply
3/6iio:chemical:bme680: Tidy up parameters to regmap_bulk_readdrivers/iio/chemical/bme680_core.c+22 -141 reply
4/6iio:imu:mpu6050: Tidy up parameters to regmap_bulk functions.drivers/iio/imu/inv_mpu6050/inv_mpu_core.c+2 -21 reply
5/6iio:magn:mmc35240: Drop unnecessary casts of val parameter in regmap_bulk*drivers/iio/magnetometer/mmc35240.c+2 -21 reply
6/6iio:light:ltr501: Drop unnecessary cast of parameter in regmap_bulk_readdrivers/iio/light/ltr501.c+1 -11 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchMatt RanostayHimanshu JhaAlexandru Ardelean
1/6R-b
2/6A-b
3/6A-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/6] IIO: Tidy up parameters to regmap_bulk_* calls

From: Jonathan Cameron <[email protected]>

One of Andy Shevchenko's recent patches tidied a case of this up and a quick grep showed we had some more.

The main focus of this set is calls to regmap_bulk_read / regmap_bulk_write. Both are used with buffers of many and varied type, but as they take a void * there is never any need to cast a pointer to said buffers to anything explicitly.

Whilst I was here I used sizeof(buf) in various places to reduce the use of explicit values when we could derive it from the source / destination buffer.

This isn't remotely urgent, but I'd like to clean these out to avoid replication in future. Not I didn't go after any other unnecessary casts in the files because that would have take thought and its Sunday evening and about time for a beer.

Jonathan Cameron (6):
iio:accel:mxc4005: Drop unnecessary explicit casts in regmap_bulk_read
calls
iio:chemical:atlas-sensor: Drop unnecessary explicit casts in
regmap_bulk_read calls
iio:chemical:bme680: Tidy up parameters to regmap_bulk_read iio:imu:mpu6050: Tidy up parameters to regmap_bulk functions. iio:magn:mmc35240: Drop unnecessary casts of val parameter in
regmap_bulk*
iio:light:ltr501: Drop unnecessary cast of parameter in
regmap_bulk_read

 drivers/iio/accel/mxc4005.c                |  4 +--
 drivers/iio/chemical/atlas-sensor.c        |  7 ++---
 drivers/iio/chemical/bme680_core.c         | 36 +++++++++++++---------
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c |  4 +--
 drivers/iio/light/ltr501.c                 |  2 +-
 drivers/iio/magnetometer/mmc35240.c        |  4 +--
 6 files changed, 32 insertions(+), 25 deletions(-)
Signature · 1 line
2.26.0