Linux IIO development
 help / color / mirror / Atom feed
* [RESEND PATCH 00/22] IIO: Clean out superfluous I2C checks for single transfers
@ 2026-07-16  0:57 Jonathan Cameron
  2026-07-16  0:57 ` [PATCH 01/22] iio: adc: ltc2471: Remove redundant i2c_master_recv() length check Jonathan Cameron
                   ` (24 more replies)
  0 siblings, 25 replies; 27+ messages in thread
From: Jonathan Cameron @ 2026-07-16  0:57 UTC (permalink / raw)
  To: linux-iio; +Cc: David Lechner, Nuno Sá, Andy Shevchenko, Jonathan Cameron

Resend to include linux-iio. Sorry to all who get it twice.

This came up in a recent review and I realised I have been giving incorrect
review feedback for years. Both i2_master_send() and i2c_master_recv() plus
the dma safe variants only ever return either an error or the full buffer
size.  Short accesses do not occur.

This series (also my first upstream series prepared by poking claude)
removes the redundant checks from all IIO drivers.

Thanks,

Jonathan

Jonathan Cameron (22):
  iio: adc: ltc2471: Remove redundant i2c_master_recv() length check
  iio: adc: ti-ads7138: Remove redundant i2c_master_send() length checks
  iio: adc: versal-sysmon: Remove redundant i2c_master_{send,recv}()
    length checks
  iio: chemical: scd30: Remove redundant i2c_master_{send,recv}() length
    checks
  iio: chemical: scd4x: Remove redundant i2c_master_{send,recv}() length
    checks
  iio: chemical: sgp30: Remove redundant i2c_master_recv() length check
  iio: chemical: sgp40: Remove redundant i2c_master_recv() length check
  iio: chemical: sps30: Remove redundant i2c_master_{send,recv}() length
    checks
  iio: dac: ad5446: Remove redundant i2c_master_send() length check
  iio: dac: ad5696: Remove redundant i2c_master_send() length check
  iio: dac: m62332: Remove redundant i2c_master_send() length check
  iio: dac: max517: Remove redundant i2c_master_send() length check
  iio: dac: max5821: Remove redundant i2c_master_{send,recv}() length
    checks
  iio: dac: mcp4725: Remove redundant i2c_master_{send,recv}() length
    checks
  iio: dac: mcp4728: Remove redundant i2c_master_{send,recv}() length
    checks
  iio: light: lv0104cs: Remove redundant i2c_master_{send,recv}() length
    checks
  iio: potentiometer: ad5110: Remove redundant i2c_master_{send,recv}()
    length checks
  iio: pressure: abp2030pa: Remove redundant i2c_master_{send,recv}()
    length checks
  iio: pressure: adp810: Remove redundant i2c_master_{send,recv}()
    length checks
  iio: pressure: icp10100: Remove redundant i2c_master_send() length
    check
  iio: pressure: mprls0025pa: Remove redundant i2c_master_{send,recv}()
    length checks
  iio: pressure: sdp500: Remove redundant i2c_master_recv() length check

 drivers/iio/adc/ltc2471.c              |  2 --
 drivers/iio/adc/ti-ads7138.c           |  4 ----
 drivers/iio/adc/versal-sysmon-i2c.c    |  6 ------
 drivers/iio/chemical/scd30_i2c.c       |  4 ----
 drivers/iio/chemical/scd4x.c           |  8 --------
 drivers/iio/chemical/sgp30.c           |  2 --
 drivers/iio/chemical/sgp40.c           |  4 ----
 drivers/iio/chemical/sps30_i2c.c       |  4 ----
 drivers/iio/dac/ad5446-i2c.c           |  2 --
 drivers/iio/dac/ad5696-i2c.c           |  2 +-
 drivers/iio/dac/m62332.c               |  2 --
 drivers/iio/dac/max517.c               |  6 ++----
 drivers/iio/dac/max5821.c              | 14 ++------------
 drivers/iio/dac/mcp4725.c              | 22 ++++++----------------
 drivers/iio/dac/mcp4728.c              | 13 +------------
 drivers/iio/light/lv0104cs.c           |  4 ----
 drivers/iio/potentiometer/ad5110.c     | 18 +++---------------
 drivers/iio/pressure/abp2030pa_i2c.c   |  4 ----
 drivers/iio/pressure/adp810.c          |  4 ----
 drivers/iio/pressure/icp10100.c        |  2 --
 drivers/iio/pressure/mprls0025pa_i2c.c |  4 ----
 drivers/iio/pressure/sdp500.c          |  4 ----
 22 files changed, 15 insertions(+), 120 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-07-16 14:55 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-16  0:57 [RESEND PATCH 00/22] IIO: Clean out superfluous I2C checks for single transfers Jonathan Cameron
2026-07-16  0:57 ` [PATCH 01/22] iio: adc: ltc2471: Remove redundant i2c_master_recv() length check Jonathan Cameron
2026-07-16  0:57 ` [PATCH 02/22] iio: adc: ti-ads7138: Remove redundant i2c_master_send() length checks Jonathan Cameron
2026-07-16  0:57 ` [PATCH 03/22] iio: adc: versal-sysmon: Remove redundant i2c_master_{send,recv}() " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 04/22] iio: chemical: scd30: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 05/22] iio: chemical: scd4x: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 06/22] iio: chemical: sgp30: Remove redundant i2c_master_recv() length check Jonathan Cameron
2026-07-16  0:57 ` [PATCH 07/22] iio: chemical: sgp40: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 08/22] iio: chemical: sps30: Remove redundant i2c_master_{send,recv}() length checks Jonathan Cameron
2026-07-16  0:57 ` [PATCH 09/22] iio: dac: ad5446: Remove redundant i2c_master_send() length check Jonathan Cameron
2026-07-16  0:57 ` [PATCH 10/22] iio: dac: ad5696: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 11/22] iio: dac: m62332: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 12/22] iio: dac: max517: " Jonathan Cameron
2026-07-16  7:45   ` Joshua Crofts
2026-07-16  0:57 ` [PATCH 13/22] iio: dac: max5821: Remove redundant i2c_master_{send,recv}() length checks Jonathan Cameron
2026-07-16  0:57 ` [PATCH 14/22] iio: dac: mcp4725: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 15/22] iio: dac: mcp4728: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 16/22] iio: light: lv0104cs: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 17/22] iio: potentiometer: ad5110: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 18/22] iio: pressure: abp2030pa: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 19/22] iio: pressure: adp810: " Jonathan Cameron
2026-07-16  0:57 ` [PATCH 20/22] iio: pressure: icp10100: Remove redundant i2c_master_send() length check Jonathan Cameron
2026-07-16  0:57 ` [PATCH 21/22] iio: pressure: mprls0025pa: Remove redundant i2c_master_{send,recv}() length checks Jonathan Cameron
2026-07-16  0:57 ` [PATCH 22/22] iio: pressure: sdp500: Remove redundant i2c_master_recv() length check Jonathan Cameron
2026-07-16  8:01 ` [RESEND PATCH 00/22] IIO: Clean out superfluous I2C checks for single transfers Joshua Crofts
2026-07-16 10:15 ` Nuno Sá
2026-07-16 14:55 ` Lars-Peter Clausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox