|
|
Log in / Subscribe / Register

iio: pressure: dps310: support negative temperature values

From:  Thomas Haemmerle <thomas.haemmerle-AT-leica-geosystems.com>
To:  jic23-AT-kernel.org
Subject:  [PATCH v3 0/4] iio: pressure: dps310: support negative temperature values
Date:  Mon, 15 Apr 2024 12:50:26 +0200
Message-ID:  <20240415105030.1161770-1-thomas.haemmerle@leica-geosystems.com>
Cc:  bsp-development.geo-AT-leica-geosystems.com, Thomas Haemmerle <thomas.haemmerle-AT-leica-geosystems.com>, Eddie James <eajames-AT-linux.ibm.com>, Lars-Peter Clausen <lars-AT-metafoo.de>, Joel Stanley <joel-AT-jms.id.au>, linux-iio-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

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-83fa9...

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



Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds