mbox series

[0/2] iio: pressure: bmp280: Use i2c_get_match_data()

Message ID cover.1691276610.git.ang.iglesiasg@gmail.com (mailing list archive)
Headers show
Series iio: pressure: bmp280: Use i2c_get_match_data() | expand

Message

Angel Iglesias Aug. 5, 2023, 11:15 p.m. UTC
Minor cleanup of BMP280 i2c code and migration to the new helper function
i2c_get_match_data() instead of device_get_match_data().

Patch 1 reorders local variable declarations on probe function following
the reverse xmas tree to unify styles with other parts of the driver.

Patch 2 ports adtops the i2c_get_match_data() helper on the i2c probe.

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

 drivers/iio/pressure/bmp280-i2c.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


base-commit: 6d9c5ae6a70c9e1017a7a252bc730d9168e219ce