Re: [PATCH 4.19 059/149] iio: fix center temperature of bmc150-accel-core

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Pascal Bouwmann <bouwmann@xxxxxxxxxx>
> 
> [ Upstream commit 6c59a962e081df6d8fe43325bbfabec57e0d4751 ]
> 
> The center temperature of the supported devices stored in the constant
> BMC150_ACCEL_TEMP_CENTER_VAL is not 24 degrees but 23 degrees.
> 
> It seems that some datasheets were inconsistent on this value leading
> to the error.  For most usecases will only make minor difference so
> not queued for stable.
> 
> Signed-off-by: Pascal Bouwmann <bouwmann@xxxxxxxxxx>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

Minor miscalibration, and author specifically states it should not be
queued for stable. Yet, Sasha goes and queues it for stable. Why?

       	   	   	      	       	      	     	     Pavel

> +++ b/drivers/iio/accel/bmc150-accel-core.c
> @@ -125,7 +125,7 @@
>  #define BMC150_ACCEL_SLEEP_1_SEC		0x0F
>  
>  #define BMC150_ACCEL_REG_TEMP			0x08
> -#define BMC150_ACCEL_TEMP_CENTER_VAL		24
> +#define BMC150_ACCEL_TEMP_CENTER_VAL		23
>  
>  #define BMC150_ACCEL_AXIS_TO_REG(axis)	(BMC150_ACCEL_REG_XOUT_L + (axis * 2))
>  #define BMC150_AUTO_SUSPEND_DELAY_MS		2000
> -- 
> 2.20.1
> 
> 



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux