[PATCH v1 1/1] iio: fix center temperature of bmc150-accel-core

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

 



The center temperature of the supported devices stored in the constant
BMC150_ACCEL_TEMP_CENTER_VAL is not 24 degrees but 23 degrees.

Signed-off-by: Pascal Bouwmann <bouwmann@xxxxxxxxxx>
---
In the datasheet of the BMC150 device the center temperature is given
wrongly.
See https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/
center-temperature-of-bmc150-device/td-p/9328

diff --git a/drivers/iio/accel/bmc150-accel-core.c b/drivers/iio/accel/bmc150-accel-core.c
index 807299dd45eb..7e86a5b7ec4e 100644
--- a/drivers/iio/accel/bmc150-accel-core.c
+++ 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

--
Mit freundlichen Grüßen / Best regards

Pascal Bouwmann

+------------------------------------------------------------+
|tau-tec GmbH                Managing Director: Michael Ruder|
|                           HRB 722286, Amtsgericht Stuttgart|
+------------------------------------------------------------+
|Hintere Grabenstr. 30           Phone:     +49 7071 70841-0 |
|D-72070 Tübingen                Fax:       +49 7071 70841-11|
|Germany                         Mobile:      +49 179 1206915|
+------------------------------------------------------------+
|Email: bouwmann@xxxxxxxxxx      WWW:   http://www.tau-tec.de|
+------------------------------------------------------------+




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux