Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
AStyle fix only.
Browse files Browse the repository at this point in the history
Tidy up commit 4e50685 with some AStyle white-space fixes.
  • Loading branch information
RobMeades committed Oct 19, 2023
1 parent 4e50685 commit 11f9f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions port/platform/zephyr/src/u_port_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static int32_t setSpiConfig(int32_t spi, uPortSpiCfg_t *pSpiCfg,
pSpiCfg->spiCsControl.gpio_dev = NULL;
#else
# if KERNEL_VERSION_MAJOR == 3 && KERNEL_VERSION_MINOR < 4
pSpiCfg->spiConfig.cs = NULL;
pSpiCfg->spiConfig.cs = NULL;
# endif
pSpiCfg->spiCsControl.gpio.port = NULL;
#endif
Expand Down Expand Up @@ -576,7 +576,7 @@ int32_t uPortSpiControllerGetDevice(int32_t handle,
#if ((KERNEL_VERSION_MAJOR == 3 && KERNEL_VERSION_MINOR < 4))
if (pSpiCfg->spiConfig.cs != NULL) {
#endif // ((KERNEL_VERSION_MAJOR == 3 && KERNEL_VERSION_MINOR < 4))
// Have a chip select pin, work out what it is
// Have a chip select pin, work out what it is
pDevice->pinSelect = uPortPrivateGetGpioPort(pSpiCfg->spiCsControl.gpio.port,
pSpiCfg->spiCsControl.gpio.pin);
if (!(pSpiCfg->spiCsControl.gpio.dt_flags & GPIO_ACTIVE_LOW)) {
Expand Down

0 comments on commit 11f9f77

Please sign in to comment.