Skip to content

Commit d19e318

Browse files
hfakkizfabiobaltieri
authored andcommitted
drivers: spi: clang-format changes for MAX32 SPI driver
This commit applies clang-format changes for MAX32 SPI driver. Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
1 parent fb8a8e5 commit d19e318

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/spi/spi_max32.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ static int transceive(const struct device *dev, const struct spi_config *config,
418418
}
419419
}
420420
#else
421-
struct spi_rtio *rtio_ctx = data->rtio_ctx;
421+
struct spi_rtio *rtio_ctx = data->rtio_ctx;
422422

423-
ret = spi_rtio_transceive(rtio_ctx, config, tx_bufs, rx_bufs);
423+
ret = spi_rtio_transceive(rtio_ctx, config, tx_bufs, rx_bufs);
424424
#endif
425425
spi_context_release(ctx, ret);
426426
return ret;
@@ -680,8 +680,8 @@ static inline void spi_max32_iodev_prepare_start(const struct device *dev)
680680
if (!hw_cs_ctrl) {
681681
spi_context_cs_control(&data->ctx, true);
682682
} 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;
685685
};
686686
}
687687

@@ -954,8 +954,8 @@ static DEVICE_API(spi, spi_max32_api) = {
954954
#define MAX32_SPI_DMA_INIT(n)
955955
#endif
956956

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, \
959959
CONFIG_SPI_MAX32_RTIO_CQ_SIZE)
960960

961961
#define DEFINE_SPI_MAX32(_num) \
@@ -975,7 +975,7 @@ static DEVICE_API(spi, spi_max32_api) = {
975975
SPI_CONTEXT_CS_GPIOS_INITIALIZE(DT_DRV_INST(_num), ctx) \
976976
IF_ENABLED(CONFIG_SPI_RTIO, (.rtio_ctx = &max32_spi_rtio_##_num))}; \
977977
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);
980980

981981
DT_INST_FOREACH_STATUS_OKAY(DEFINE_SPI_MAX32)

0 commit comments

Comments
 (0)