Skip to content

Add support for BMP390 and various driver cleanups

Angel Iglesias linux-iio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 6 repliesIn review
  2. v15 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Dropped unnecessary register reorder in patch 3.
- Simplified error reporting on patch 4 avoiding string memallocs.
- Added fallback logic on patch 4 to follow firmware configuration whether device ID matches with any of the known devices IDs.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iio: pressure: bmp280: Use i2c_get_match_data()drivers/iio/pressure/bmp280-i2c.c+1 -33 replies
2/5iio: pressure: bmp280: Use spi_get_device_match_data()drivers/iio/pressure/bmp280-spi.c+1 -30 replies
3/5iio: pressure: bmp280: Rearrange vars in reverse xmas tree orderdrivers/iio/pressure/bmp280-i2c.c drivers/iio/pressure/bmp280-spi.c+4 -60 replies
4/5iio: pressure: bmp280: Allow multiple chips id per family of devicesdrivers/iio/pressure/bmp280-core.c drivers/iio/pressure/bmp280.h+30 -103 replies
5/5iio: pressure: bmp280: Add support for BMP390drivers/iio/pressure/bmp280-core.c drivers/iio/pressure/bmp280.h+3 -10 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/5R-b
2/5R-b
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] Add support for BMP390 and various driver cleanups

Add support for the Bosch BMP390 pressure sensors and includes minor driver code cleanups.
Patches 1 and 2 update I2C and SPI driver matching logic using newer helper functions available.
Patch 3 fixes minor coding style incoherences.
Patches 4 and 5 introduce support for the new BMP390 sensor allowing sensor families to have a list of known device IDs to improve detection

This patch series is aggregates patches from various series:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

Changes in v2:
- Dropped unnecessary register reorder in patch 3.
- Simplified error reporting on patch 4 avoiding string memallocs.
- Added fallback logic on patch 4 to follow firmware configuration whether device ID matches with any of the known devices IDs.

Angel Iglesias (4):
iio: pressure: bmp280: Use spi_get_device_match_data()
iio: pressure: bmp280: Rearrange vars in reverse xmas tree order
iio: pressure: bmp280: Allow multiple chips id per family of devices
iio: pressure: bmp280: Add support for BMP390

Biju Das (1):
iio: pressure: bmp280: Use i2c_get_match_data()

 drivers/iio/pressure/bmp280-core.c | 38 +++++++++++++++++++++++-------
 drivers/iio/pressure/bmp280-i2c.c  |  8 +++----
 drivers/iio/pressure/bmp280-spi.c  | 10 +++-----
 drivers/iio/pressure/bmp280.h      |  4 +++-
 4 files changed, 38 insertions(+), 22 deletions(-)

base-commit: 89e2233386a5670d15908628b63e611cb03b0d03

Signature · 1 line
2.42.0