iio: pressure: Fixes BMP38x and BMP390 SPI support
authorVasileios Amoiridis <vassilisamir@gmail.com>
Mon, 19 Feb 2024 19:13:59 +0000 (20:13 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 24 Feb 2024 17:57:07 +0000 (17:57 +0000)
commita9dd9ba323114f366eb07f1d9630822f8df6cbb2
treeb8024b6b83691a1afcf37481f0d3a78faac7f720
parent60caa8b33bd682a9ed99d1fc3f91d74e1acc9922
iio: pressure: Fixes BMP38x and BMP390 SPI support

According to the datasheet of BMP38x and BMP390 devices, for an SPI
read operation the first byte that is returned needs to be dropped,
and the rest of the bytes are the actual data returned from the
sensor.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Fixes: 8d329309184d ("iio: pressure: bmp280: Add support for BMP380 sensor family")
Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Acked-by: Angel Iglesias <ang.iglesiasg@gmail.com>
Link: https://lore.kernel.org/r/20240219191359.18367-1-vassilisamir@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-spi.c