Jordan Yates
757bb42d5f
sensor: bme280: convert to _dt_spec
...
Convert bme280 driver to use `spi_dt_spec` and `i2c_dt_spec`.
Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2021-08-09 22:40:18 -04:00
Martí Bolívar
4a381fce6b
drivers: bme280: clean up array usage
...
Use sizeof() and ARRAY_SIZE() to have more single points of truth.
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-02-23 10:34:19 -05:00
Martí Bolívar
bfff50127f
drivers: bme280: factor out bus I/O routines
...
Move the SPI and I2C bus I/O bits into their own files. This makes
this driver more similar to other sensor drivers.
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-02-23 10:34:19 -05:00