Skip to content

Commit 2227180

Browse files
committed
manual fix for macro
1 parent cbeaf99 commit 2227180

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

drivers/sensor/ms5611/ms5611.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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
/*

0 commit comments

Comments
 (0)