[PATCH v4 0/2] iio: accel: fxls8962af: Fix temperature readings

Sean Nyekjaer posted 2 patches 7 months, 2 weeks ago
drivers/iio/accel/fxls8962af-core.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
[PATCH v4 0/2] iio: accel: fxls8962af: Fix temperature readings
Posted by Sean Nyekjaer 7 months, 2 weeks ago
Add the correct scale to get temperature in mili degree Celcius.
Add sign component to temperature scan element.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
---
Changes in v4:
- Blindly Copy/Pasted  Andy's comment. Use the correct MILLIDEGREE_PER_DEGREE
- Link to v3: https://lore.kernel.org/r/20250505-fxls-v3-0-8c541bf0205c@geanix.com

Changes in v3:
- Dropping define infavor of inline scale value
- Added using constants from units.h
- Tweaked commit msg to make it more assertive
- Link to v2: https://lore.kernel.org/r/20250502-fxls-v2-0-e1af65f1aa6c@geanix.com

Changes in v2:
- Correct offset is applied before scaling component 
- Added sign component to temperature scan element
- Link to v1: https://lore.kernel.org/r/20250501-fxls-v1-1-f54061a07099@geanix.com

---
Sean Nyekjaer (2):
      iio: accel: fxls8962af: Fix temperature calculation
      iio: accel: fxls8962af: Fix temperature scan element sign

 drivers/iio/accel/fxls8962af-core.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)
---
base-commit: 609bc31eca06c7408e6860d8b46311ebe45c1fef
change-id: 20250501-fxls-307ef3d6d065

Best regards,
-- 
Sean Nyekjaer <sean@geanix.com>
Re: [PATCH v4 0/2] iio: accel: fxls8962af: Fix temperature readings
Posted by Jonathan Cameron 7 months ago
On Mon, 05 May 2025 21:20:06 +0200
Sean Nyekjaer <sean@geanix.com> wrote:

> Add the correct scale to get temperature in mili degree Celcius.
> Add sign component to temperature scan element.
> 
> Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Applied.

Thanks,

> ---
> Changes in v4:
> - Blindly Copy/Pasted  Andy's comment. Use the correct MILLIDEGREE_PER_DEGREE
> - Link to v3: https://lore.kernel.org/r/20250505-fxls-v3-0-8c541bf0205c@geanix.com
> 
> Changes in v3:
> - Dropping define infavor of inline scale value
> - Added using constants from units.h
> - Tweaked commit msg to make it more assertive
> - Link to v2: https://lore.kernel.org/r/20250502-fxls-v2-0-e1af65f1aa6c@geanix.com
> 
> Changes in v2:
> - Correct offset is applied before scaling component 
> - Added sign component to temperature scan element
> - Link to v1: https://lore.kernel.org/r/20250501-fxls-v1-1-f54061a07099@geanix.com
> 
> ---
> Sean Nyekjaer (2):
>       iio: accel: fxls8962af: Fix temperature calculation
>       iio: accel: fxls8962af: Fix temperature scan element sign
> 
>  drivers/iio/accel/fxls8962af-core.c | 15 +++++++++++++--
>  1 file changed, 13 insertions(+), 2 deletions(-)
> ---
> base-commit: 609bc31eca06c7408e6860d8b46311ebe45c1fef
> change-id: 20250501-fxls-307ef3d6d065
> 
> Best regards,