[PATCH v3 0/7] pressure: bmp280: Minor cleanup and interrupt support

Vasileios Amoiridis
2024-08-23T18:17:20Z

Depends on this: https://lore.kernel.org/linux-iio/20240823172017.9028-1-vassilisamir@gmail.com

Changes in v3:

[PATCH v3 1/7]:
- Moved the indexing enum on top of the calibration buffer and added a
comment that the reason for the complex accesses can be found in the
datasheet.

[PATCH v3 2/7]:
- Use dev_err_probe() instead of dev_err() since the .preinit function
is called only from the probe.

[PATCH v3 4/7]:
- Made static the const int arrays.
- Changed the comment from "future" versions to "newer" versions.
- The current state of the board is saved into a variable in order to be
able to be recovered after a suspend/resume operation.

[PATCH v3 5/7]:
- Corrected syntax error.

[PATCH v3 6/7]:
- Merged the bmp{3,5}80_trigger_probe() functions to one by using a
general __bmp280_trigger_probe() which takes the sensor specific
functions as interrupts.

[PATCH v3 7/7]:
- Fixed the bmp085_chip_info array by duplicating the bmp180_chip_info
and just adding the extra variable for the bmp085 interrupt.

v2: https://lore.kernel.org/linux-iio/20240725231039.614536-1-vassilisamir@gmail.com

Vasileios Amoiridis (7):
iio: pressure: bmp280: Use bulk read for humidity calibration data
iio: pressure: bmp280: Add support for bmp280 soft reset
iio: pressure: bmp280: Remove config error check for IIR filter
updates
iio: pressure: bmp280: Use sleep and forced mode for oneshot captures
dt-bindings: iio: pressure: bmp085: Add interrupts for BMP3xx and
BMP5xx devices
iio: pressure: bmp280: Add data ready trigger support
iio: pressure: bmp280: Move bmp085 interrupt to new configuration

.../bindings/iio/pressure/bmp085.yaml | 7 +-
drivers/iio/pressure/bmp280-core.c | 691 +++++++++++++++---
drivers/iio/pressure/bmp280-i2c.c | 4 +-
drivers/iio/pressure/bmp280-spi.c | 4 +-
drivers/iio/pressure/bmp280.h | 52 ++
5 files changed, 667 insertions(+), 91 deletions(-)

base-commit: 0f718e10da81446df0909c9939dff2b77e3b4e95
prerequisite-patch-id: e4f81f31f4fbb2aa872c0c74ed4511893eee0c9a
--
2.25.1