@@ -418,9 +418,9 @@ static int transceive(const struct device *dev, const struct spi_config *config,
418
418
}
419
419
}
420
420
#else
421
- struct spi_rtio * rtio_ctx = data -> rtio_ctx ;
421
+ struct spi_rtio * rtio_ctx = data -> rtio_ctx ;
422
422
423
- ret = spi_rtio_transceive (rtio_ctx , config , tx_bufs , rx_bufs );
423
+ ret = spi_rtio_transceive (rtio_ctx , config , tx_bufs , rx_bufs );
424
424
#endif
425
425
spi_context_release (ctx , ret );
426
426
return ret ;
@@ -680,8 +680,8 @@ static inline void spi_max32_iodev_prepare_start(const struct device *dev)
680
680
if (!hw_cs_ctrl ) {
681
681
spi_context_cs_control (& data -> ctx , true);
682
682
} else {
683
- cfg -> regs -> ctrl0 = ( cfg -> regs -> ctrl0 & ~ MXC_F_SPI_CTRL0_START ) |
684
- MXC_F_SPI_CTRL0_SS_CTRL ;
683
+ cfg -> regs -> ctrl0 =
684
+ ( cfg -> regs -> ctrl0 & ~ MXC_F_SPI_CTRL0_START ) | MXC_F_SPI_CTRL0_SS_CTRL ;
685
685
};
686
686
}
687
687
@@ -954,8 +954,8 @@ static DEVICE_API(spi, spi_max32_api) = {
954
954
#define MAX32_SPI_DMA_INIT (n )
955
955
#endif
956
956
957
- #define DEFINE_SPI_MAX32_RTIO (_num ) SPI_RTIO_DEFINE(max32_spi_rtio_##_num, \
958
- CONFIG_SPI_MAX32_RTIO_SQ_SIZE, \
957
+ #define DEFINE_SPI_MAX32_RTIO (_num ) \
958
+ SPI_RTIO_DEFINE(max32_spi_rtio_##_num, CONFIG_SPI_MAX32_RTIO_SQ_SIZE, \
959
959
CONFIG_SPI_MAX32_RTIO_CQ_SIZE)
960
960
961
961
#define DEFINE_SPI_MAX32 (_num ) \
@@ -975,7 +975,7 @@ static DEVICE_API(spi, spi_max32_api) = {
975
975
SPI_CONTEXT_CS_GPIOS_INITIALIZE(DT_DRV_INST(_num), ctx) \
976
976
IF_ENABLED(CONFIG_SPI_RTIO, (.rtio_ctx = &max32_spi_rtio_##_num))}; \
977
977
SPI_DEVICE_DT_INST_DEFINE(_num, spi_max32_init, NULL, &max32_spi_data_##_num, \
978
- &max32_spi_config_##_num, PRE_KERNEL_2, CONFIG_SPI_INIT_PRIORITY, \
979
- &spi_max32_api);
978
+ &max32_spi_config_##_num, PRE_KERNEL_2, \
979
+ CONFIG_SPI_INIT_PRIORITY, &spi_max32_api);
980
980
981
981
DT_INST_FOREACH_STATUS_OKAY (DEFINE_SPI_MAX32 )
0 commit comments