]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 11:18:05 +0000 (12:18 +0100)
commit3c80f973117cdfe7ec9cee7a51b35d21064fee75
tree14ed44f4d0bd0e988f8cbb62737b478881b48017
parent8023398fb0a91662a142a471ada95ddfd72d0686
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>
drivers/iio/accel/bmc150-accel-core.c