]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iio: fix center temperature of bmc150-accel-core
authorPascal Bouwmann <bouwmann@tau-tec.de>
Thu, 29 Aug 2019 05:29:41 +0000 (07:29 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 13 Nov 2019 23:47:34 +0000 (18:47 -0500)
commitbfedf9da185bc2bafd57d8fd74cb61745655b351
treeac8c5cdbcba22e9bbc4f7ec6515b7ed328149712
parent00c166872f3275c2dd3ab2ed8dd9270edf61e22a
iio: fix center temperature of bmc150-accel-core

BugLink: https://bugs.launchpad.net/bugs/1852492
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/iio/accel/bmc150-accel-core.c