]> git.baikalelectronics.ru Git - kernel.git/commit
iio: pressure: ms5611: fixed value compensation bug
authorMitja Spes <mitja@lxnav.com>
Fri, 21 Oct 2022 13:58:20 +0000 (15:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:23:00 +0000 (11:23 +0100)
commitb8cc9ff8491b5d33f707b5ccb277649755fe9e2e
treeabc343773399ef6c558adc81c6cfb656c00d0db9
parenta988bb69dfd5ee745a277c33a62b812a9e2cd523
iio: pressure: ms5611: fixed value compensation bug

[ Upstream commit 80534da2e0700da00a5380f44b33ff298a38ec26 ]

When using multiple instances of this driver the compensation PROM was
overwritten by the last initialized sensor. Now each sensor has own PROM
storage.

Signed-off-by: Mitja Spes <mitja@lxnav.com>
Fixes: aa0343cce1c1 ("iio: pressure: ms5611: add support for MS5607 temperature and pressure sensor")
Link: https://lore.kernel.org/r/20221021135827.1444793-2-mitja@lxnav.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/pressure/ms5611.h
drivers/iio/pressure/ms5611_core.c