Skip to content

iio: pressure: bmp280: Small driver cleanup

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 Latest3 patches 6 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Added patch 3 adopting spi_get_device_match_data().
- Updated patch 2 following advice from Uwe Kleine-König <[email protected]> regarding unintentioned driver semantic changes.
- Revised thoroughfully driver coding style and update more functions.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iio: pressure: bmp280: i2c: Rearrange vars in reverse xmas tree orderdrivers/iio/pressure/bmp280-core.c drivers/iio/pressure/bmp280-i2c.c drivers/iio/pressure/bmp280-spi.c+6 -80 replies
2/3iio: pressure: bmp280: Use i2c_get_match_datadrivers/iio/pressure/bmp280-i2c.c+1 -36 replies
3/3iio: pressure: bmp280: Use spi_get_device_match_data()drivers/iio/pressure/bmp280-spi.c+1 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] iio: pressure: bmp280: Small driver cleanup

Minor cleanup of BMP280 i2c code and migration to the new helper functions i2c_get_match_data() and spi_get_device_match_data().

Revise driver coding style to follow reverse christmas tree.

Changelog v2:
- Added patch 3 adopting spi_get_device_match_data().
- Updated patch 2 following advice from Uwe Kleine-König <[email protected]> regarding unintentioned driver semantic changes.
- Revised thoroughfully driver coding style and update more functions.

v1:
https://lore.kernel.org/all/[email protected]/

Angel Iglesias (3):
iio: pressure: bmp280: i2c: Rearrange vars in reverse xmas tree order
iio: pressure: bmp280: Use i2c_get_match_data
iio: pressure: bmp280: Use spi_get_device_match_data()

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

base-commit: 14b7447cec15ee8dfdfe0da66ba1e280ded7e00a

Signature · 1 line
2.41.0