summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPascal Bouwmann <bouwmann@tau-tec.de>2019-08-29 07:29:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-06 12:43:01 +0100
commit6e026ddea96c418cda11fadbd755ee389f20b324 (patch)
treebdfb8613390a37b6eaa9edf965034d1d396d8e4f /drivers
parent253935ae19c622bfb245c5cbfa4dcaadf5e211e7 (diff)
downloadlinux-stable-6e026ddea96c418cda11fadbd755ee389f20b324.tar.gz
linux-stable-6e026ddea96c418cda11fadbd755ee389f20b324.tar.bz2
linux-stable-6e026ddea96c418cda11fadbd755ee389f20b324.zip
iio: fix center temperature of bmc150-accel-core
[ 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@tau-tec.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/accel/bmc150-accel-core.c2
1 files changed, 1 insertions, 1 deletions
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