]> git.hungrycats.org Git - linux/commit
iio: pressure: bmp280: Fix waiting time for BMP3xx configuration
authorVasileios Amoiridis <vassilisamir@gmail.com>
Thu, 11 Jul 2024 21:15:50 +0000 (23:15 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:38 +0000 (10:13 +0100)
commit262a6634bcc4f0c1c53d13aa89882909f281a6aa
tree8b55ed859ef271f331fe784a3109ba44614ce079
parentb9065b0250e1705935445ede0a18c1850afe7b75
iio: pressure: bmp280: Fix waiting time for BMP3xx configuration

According to the datasheet, both pressure and temperature can go up to
oversampling x32. With this option, the maximum measurement time is not
80ms (this is for press x32 and temp x2), but it is 130ms nominal
(calculated from table 3.9.2) and since most of the maximum values
are around +15%, it is configured to 150ms.

Fixes: 8d329309184d ("iio: pressure: bmp280: Add support for BMP380 sensor family")
Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20240711211558.106327-3-vassilisamir@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-core.c