diff mbox series

[v2,02/19] iio: chemical: bme680: Fix calibration data variable

Message ID 20240606212313.207550-3-vassilisamir@gmail.com (mailing list archive)
State Accepted
Headers show
Series iio: chemical: bme680: Driver fixes and cleanup | expand

Commit Message

Vasileios Amoiridis June 6, 2024, 9:22 p.m. UTC
According to the BME68x Sensor API [1], the h6 calibration
data variable should be an unsigned integer of size 8.

[1]: https://github.com/boschsensortec/BME68x_SensorAPI/blob/v4.4.8/bme68x_defs.h#L789
Fixes: 1b3bd8592780 ("iio: chemical: Add support for Bosch BME680 sensor")
Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
---
 drivers/iio/chemical/bme680_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jonathan Cameron June 9, 2024, 11 a.m. UTC | #1
On Thu,  6 Jun 2024 23:22:54 +0200
Vasileios Amoiridis <vassilisamir@gmail.com> wrote:

> According to the BME68x Sensor API [1], the h6 calibration
> data variable should be an unsigned integer of size 8.
> 
> [1]: https://github.com/boschsensortec/BME68x_SensorAPI/blob/v4.4.8/bme68x_defs.h#L789
> Fixes: 1b3bd8592780 ("iio: chemical: Add support for Bosch BME680 sensor")
> Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Applied to the fixes-togreg branch of iio.git and marked for stable.
> ---
>  drivers/iio/chemical/bme680_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/chemical/bme680_core.c b/drivers/iio/chemical/bme680_core.c
> index 2c40c13fe97a..812829841733 100644
> --- a/drivers/iio/chemical/bme680_core.c
> +++ b/drivers/iio/chemical/bme680_core.c
> @@ -38,7 +38,7 @@ struct bme680_calib {
>  	s8  par_h3;
>  	s8  par_h4;
>  	s8  par_h5;
> -	s8  par_h6;
> +	u8  par_h6;
>  	s8  par_h7;
>  	s8  par_gh1;
>  	s16 par_gh2;
diff mbox series

Patch

diff --git a/drivers/iio/chemical/bme680_core.c b/drivers/iio/chemical/bme680_core.c
index 2c40c13fe97a..812829841733 100644
--- a/drivers/iio/chemical/bme680_core.c
+++ b/drivers/iio/chemical/bme680_core.c
@@ -38,7 +38,7 @@  struct bme680_calib {
 	s8  par_h3;
 	s8  par_h4;
 	s8  par_h5;
-	s8  par_h6;
+	u8  par_h6;
 	s8  par_h7;
 	s8  par_gh1;
 	s16 par_gh2;