Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v2 0/7] iio: pressure: dps310: cleanups
@ 2026-11-26 12:13 Rupesh Majhi
  2026-11-26 12:13 ` [PATCH v2 1/7] iio: pressure: dps310: sort register field defines high to low Rupesh Majhi
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Rupesh Majhi @ 2026-11-26 12:13 UTC (permalink / raw)
  To: Andy Shevchenko, David Lechner, Eddie James, Jonathan Cameron,
	Nuno Sá
  Cc: linux-iio, linux-kernel, Rupesh Majhi, u.kleine-koenig, crofts

The cleanups promised in the FIFO series cover letter [1], plus the
rest of Andy's list from his review of the ACPI fix.

Patches 1, 3, 4 and 7 build to the same object code. Patch 2 gives the
same coefficients as the old parsing, checked on random input. Patch 5
changes the wait after a reset from 15 to 55 ms to 20 ms. Tested on a
DPS310 on a BeagleBone Black.

Based on iio testing.

v2:
- 1: sort high to low, fewer lines move and it is the datasheet order
  (Andy)
- 2: "No functional change intended." (Andy)
- 5: wrap the poll call on logical boundaries, msleep(20) after a
  reset (Andy)
- 7: drop bits.h and errno.h (Andy), drop mod_devicetable.h (Uwe,
  Joshua)
- Reviewed-by from Andy on 2, 4 and 6

v1: https://lore.kernel.org/linux-iio/20261123220649.36887-1-zoone.rupert@gmail.com/
[1] https://lore.kernel.org/linux-iio/20260921183132.233136-1-zoone.rupert@gmail.com/

Cc: u.kleine-koenig@baylibre.com
Cc: crofts@kernel.org

Rupesh Majhi (7):
  iio: pressure: dps310: sort register field defines high to low
  iio: pressure: dps310: read the coefficients with get_unaligned_be*()
  iio: pressure: dps310: use min() instead of min_t()
  iio: pressure: dps310: use KILO for the Pa to kPa conversion
  iio: pressure: dps310: use time unit macros for sleeps and timeouts
  iio: pressure: dps310: drop the unused i2c_set_clientdata()
  iio: pressure: dps310: include what the driver uses

 drivers/iio/pressure/dps310.c | 86 +++++++++++++++--------------------
 1 file changed, 37 insertions(+), 49 deletions(-)


base-commit: f2cbef9101b9fc979a324bb1242b8b802a2484b6
-- 
2.43.0


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

end of thread, other threads:[~2026-11-26 14:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 12:13 [PATCH v2 0/7] iio: pressure: dps310: cleanups Rupesh Majhi
2026-11-26 12:13 ` [PATCH v2 1/7] iio: pressure: dps310: sort register field defines high to low Rupesh Majhi
2026-11-26 13:20   ` Joshua Crofts
2026-11-26 13:44   ` Andy Shevchenko
2026-11-26 12:13 ` [PATCH v2 2/7] iio: pressure: dps310: read the coefficients with get_unaligned_be*() Rupesh Majhi
2026-11-26 12:13 ` [PATCH v2 3/7] iio: pressure: dps310: use min() instead of min_t() Rupesh Majhi
2026-11-26 13:18   ` Joshua Crofts
2026-11-26 13:44   ` Andy Shevchenko
2026-11-26 12:13 ` [PATCH v2 4/7] iio: pressure: dps310: use KILO for the Pa to kPa conversion Rupesh Majhi
2026-11-26 12:13 ` [PATCH v2 5/7] iio: pressure: dps310: use time unit macros for sleeps and timeouts Rupesh Majhi
2026-11-26 13:17   ` Joshua Crofts
2026-11-26 13:49     ` Andy Shevchenko
2026-11-26 14:19       ` Joshua Crofts
2026-11-26 14:37         ` Andy Shevchenko
2026-11-26 13:49   ` Andy Shevchenko
2026-11-26 12:13 ` [PATCH v2 6/7] iio: pressure: dps310: drop the unused i2c_set_clientdata() Rupesh Majhi
2026-11-26 12:13 ` [PATCH v2 7/7] iio: pressure: dps310: include what the driver uses Rupesh Majhi
2026-11-26 13:12   ` Joshua Crofts

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