File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -300,15 +300,16 @@ static DEVICE_API(sensor, ms5611_api_funcs) = {
300300 (SPI_OP_MODE_MASTER | SPI_WORD_SET(8) | SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_TRANSFER_MSB)
301301
302302/* Initializes a struct ms5611_config for an instance on a SPI bus. */
303- #define MS5611_CONFIG_SPI (inst ) \
304- {.tf = &ms5611_spi_transfer_function, \
305- .bus_cfg.spi = SPI_DT_SPEC_INST_GET(inst, MS5611_SPI_OPERATION)}
303+ #define MS5611_CONFIG_SPI (inst ) \
304+ { \
305+ .tf = &ms5611_spi_transfer_function, \
306+ .bus_cfg.spi = SPI_DT_SPEC_INST_GET(inst, MS5611_SPI_OPERATION) \
307+ }
306308
307309/* Initializes a struct ms5611_config for an instance on a I2C bus. */
308- #define MS5611_CONFIG_I2C (inst ) \
309- { \
310- .tf = &ms5611_i2c_transfer_function, \
311- .bus_cfg.i2c = I2C_DT_SPEC_INST_GET(inst), \
310+ #define MS5611_CONFIG_I2C (inst ) \
311+ { \
312+ .tf = &ms5611_i2c_transfer_function, .bus_cfg.i2c = I2C_DT_SPEC_INST_GET(inst), \
312313 }
313314
314315/*
You can’t perform that action at this time.
0 commit comments