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>
This commit is contained in:
parent
fb8a8e592c
commit
d19e318a71
1 changed files with 8 additions and 8 deletions
|
@ -418,9 +418,9 @@ static int transceive(const struct device *dev, const struct spi_config *config,
|
|||
}
|
||||
}
|
||||
#else
|
||||
struct spi_rtio *rtio_ctx = data->rtio_ctx;
|
||||
struct spi_rtio *rtio_ctx = data->rtio_ctx;
|
||||
|
||||
ret = spi_rtio_transceive(rtio_ctx, config, tx_bufs, rx_bufs);
|
||||
ret = spi_rtio_transceive(rtio_ctx, config, tx_bufs, rx_bufs);
|
||||
#endif
|
||||
spi_context_release(ctx, ret);
|
||||
return ret;
|
||||
|
@ -680,8 +680,8 @@ static inline void spi_max32_iodev_prepare_start(const struct device *dev)
|
|||
if (!hw_cs_ctrl) {
|
||||
spi_context_cs_control(&data->ctx, true);
|
||||
} else {
|
||||
cfg->regs->ctrl0 = (cfg->regs->ctrl0 & ~MXC_F_SPI_CTRL0_START) |
|
||||
MXC_F_SPI_CTRL0_SS_CTRL;
|
||||
cfg->regs->ctrl0 =
|
||||
(cfg->regs->ctrl0 & ~MXC_F_SPI_CTRL0_START) | MXC_F_SPI_CTRL0_SS_CTRL;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -954,8 +954,8 @@ static DEVICE_API(spi, spi_max32_api) = {
|
|||
#define MAX32_SPI_DMA_INIT(n)
|
||||
#endif
|
||||
|
||||
#define DEFINE_SPI_MAX32_RTIO(_num) SPI_RTIO_DEFINE(max32_spi_rtio_##_num, \
|
||||
CONFIG_SPI_MAX32_RTIO_SQ_SIZE, \
|
||||
#define DEFINE_SPI_MAX32_RTIO(_num) \
|
||||
SPI_RTIO_DEFINE(max32_spi_rtio_##_num, CONFIG_SPI_MAX32_RTIO_SQ_SIZE, \
|
||||
CONFIG_SPI_MAX32_RTIO_CQ_SIZE)
|
||||
|
||||
#define DEFINE_SPI_MAX32(_num) \
|
||||
|
@ -975,7 +975,7 @@ static DEVICE_API(spi, spi_max32_api) = {
|
|||
SPI_CONTEXT_CS_GPIOS_INITIALIZE(DT_DRV_INST(_num), ctx) \
|
||||
IF_ENABLED(CONFIG_SPI_RTIO, (.rtio_ctx = &max32_spi_rtio_##_num))}; \
|
||||
SPI_DEVICE_DT_INST_DEFINE(_num, spi_max32_init, NULL, &max32_spi_data_##_num, \
|
||||
&max32_spi_config_##_num, PRE_KERNEL_2, CONFIG_SPI_INIT_PRIORITY, \
|
||||
&spi_max32_api);
|
||||
&max32_spi_config_##_num, PRE_KERNEL_2, \
|
||||
CONFIG_SPI_INIT_PRIORITY, &spi_max32_api);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(DEFINE_SPI_MAX32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue