linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] IIO: Tidy up parameters to regmap_bulk_* calls
@ 2020-04-05 18:03 jic23
  2020-04-05 18:03 ` [PATCH 1/6] iio:accel:mxc4005: Drop unnecessary explicit casts in regmap_bulk_read calls jic23
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: jic23 @ 2020-04-05 18:03 UTC (permalink / raw)
  To: linux-iio; +Cc: Andy Shevchenko, Jonathan Cameron

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

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(-)

-- 
2.26.0


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-04-13 15:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-05 18:03 [PATCH 0/6] IIO: Tidy up parameters to regmap_bulk_* calls jic23
2020-04-05 18:03 ` [PATCH 1/6] iio:accel:mxc4005: Drop unnecessary explicit casts in regmap_bulk_read calls jic23
2020-04-13  4:31   ` Ardelean, Alexandru
2020-04-05 18:03 ` [PATCH 2/6] iio:chemical:atlas-sensor: " jic23
2020-04-06  0:54   ` Matt Ranostay
2020-04-05 18:03 ` [PATCH 3/6] iio:chemical:bme680: Tidy up parameters to regmap_bulk_read jic23
2020-04-06 13:08   ` Himanshu Jha
2020-04-05 18:03 ` [PATCH 4/6] iio:imu:mpu6050: Tidy up parameters to regmap_bulk functions jic23
2020-04-13  4:32   ` Ardelean, Alexandru
2020-04-05 18:03 ` [PATCH 5/6] iio:magn:mmc35240: Drop unnecessary casts of val parameter in regmap_bulk* jic23
2020-04-13  4:32   ` Ardelean, Alexandru
2020-04-05 18:03 ` [PATCH 6/6] iio:light:ltr501: Drop unnecessary cast of parameter in regmap_bulk_read jic23
2020-04-13  4:33   ` Ardelean, Alexandru
2020-04-12 13:48 ` [PATCH 0/6] IIO: Tidy up parameters to regmap_bulk_* calls Jonathan Cameron
2020-04-12 20:59   ` Andy Shevchenko
2020-04-13  4:34     ` Ardelean, Alexandru
2020-04-13 15:07       ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).