]> Git Repo - linux.git/commitdiff
iio: fix center temperature of bmc150-accel-core
authorPascal Bouwmann <[email protected]>
Thu, 29 Aug 2019 05:29:41 +0000 (07:29 +0200)
committerJonathan Cameron <[email protected]>
Sun, 8 Sep 2019 12:11:50 +0000 (13:11 +0100)
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 <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
drivers/iio/accel/bmc150-accel-core.c

index cf6c0e3a83d381db42c202da4897cbf4a620e717..121b4e89f038c7782d86d8aaee0fd6ba0043721a 100644 (file)
 #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
This page took 0.057372 seconds and 4 git commands to generate.