Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v3 0/4] iio: pressure: dps310: support negative temperature values
@ 2024-04-15 10:50 Thomas Haemmerle
  2024-04-15 10:50 ` [PATCH v3 1/4] " Thomas Haemmerle
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Thomas Haemmerle @ 2024-04-15 10:50 UTC (permalink / raw)
  To: jic23
  Cc: bsp-development.geo, Thomas Haemmerle, Eddie James,
	Lars-Peter Clausen, Joel Stanley, linux-iio, linux-kernel

This patch set fixes the reading of negative temperatures (returned in
millidegree celsius). As this requires a change of the error handling
other functions are aligned with this.
In addition a small code simplification for reading the scale factors
for temperature and pressure is included.

---
Changes in v2:
 - include fixes tag
 - Split up patch
 - introduce variables for intermediate results in functions
 - simplify scale factor reading

Changes in v3:
 - fix locking issues reported in https://lore.kernel.org/all/cbdafb33-fd3b-47ad-a678-83fa92475278@moroto.mountain/

Thomas Haemmerle (4):
  iio: pressure: dps310: support negative temperature values
  iio: pressure: dps310: introduce consistent error handling
  iio: pressure: dps310: consistently check return value of
    `regmap_read`
  iio: pressure: dps310: simplify scale factor reading

 drivers/iio/pressure/dps310.c | 138 +++++++++++++++++++---------------
 1 file changed, 77 insertions(+), 61 deletions(-)


base-commit: 0bbac3facb5d6cc0171c45c9873a2dc96bea9680
--
2.34.1

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

end of thread, other threads:[~2024-04-20 13:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-15 10:50 [PATCH v3 0/4] iio: pressure: dps310: support negative temperature values Thomas Haemmerle
2024-04-15 10:50 ` [PATCH v3 1/4] " Thomas Haemmerle
2024-04-15 10:50 ` [PATCH v3 2/4] iio: pressure: dps310: introduce consistent error handling Thomas Haemmerle
2024-04-15 10:50 ` [PATCH v3 3/4] iio: pressure: dps310: consistently check return value of `regmap_read` Thomas Haemmerle
2024-04-15 10:50 ` [PATCH v3 4/4] iio: pressure: dps310: simplify scale factor reading Thomas Haemmerle
2024-04-20 13:54 ` [PATCH v3 0/4] iio: pressure: dps310: support negative temperature values Jonathan Cameron

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