From c494ce4a96e5d15dd217364f53647ced6363bd4b Mon Sep 17 00:00:00 2001 From: simbit18 <101105604+simbit18@users.noreply.github.com> Date: Thu, 14 Dec 2023 15:22:07 +0100 Subject: [PATCH] Update kconfig2html.c Fix nuttx coding style --- arch/arm/include/cxd56xx/gnss_type.h | 2 +- arch/arm/include/eoss3/chip.h | 2 +- arch/arm/include/imxrt/imxrt105x_irq.h | 2 +- arch/arm/include/imxrt/imxrt106x_irq.h | 2 +- arch/arm/include/kinetis/kinetis_k40irq.h | 2 +- arch/arm/include/kinetis/kinetis_k60irq.h | 2 +- arch/arm/include/samv7/same70_irq.h | 4 +- arch/arm/include/samv7/samv71_irq.h | 4 +- arch/arm/src/at32/at32_can_sock.c | 6 +- arch/arm/src/at32/at32_eth.c | 2 +- arch/arm/src/at32/at32_serial.c | 2 +- arch/arm/src/at32/at32f43xx_flash.c | 4 +- arch/arm/src/cxd56xx/cxd56_nxaudio.c | 8 +- arch/arm/src/cxd56xx/cxd56_nxaudio.h | 2 +- arch/arm/src/imxrt/imxrt_lpspi.c | 2 +- arch/arm/src/kinetis/kinetis_spi.c | 2 +- arch/arm/src/nrf53/nrf53_adc.h | 2 +- arch/arm/src/nrf53/nrf53_qspi.c | 2 +- arch/arm/src/nrf91/nrf91_spu.c | 2 +- arch/arm/src/phy62xx/core_bumbee_m0.h | 2 +- arch/arm/src/rp2040/rp2040_ws2812.c | 12 +- arch/arm/src/s32k1xx/s32k1xx_lpspi.c | 2 +- arch/arm/src/s32k3xx/s32k3xx_lpspi.c | 2 +- arch/arm/src/sama5/sam_spi.c | 2 +- arch/arm/src/samv7/hardware/sam_pwm.h | 2 +- arch/arm/src/samv7/sam_qspi_spi.c | 2 +- arch/arm/src/stm32/hardware/stm32_dbgmcu.h | 4 +- .../arm/src/stm32/hardware/stm32f33xxx_comp.h | 2 +- .../arm/src/stm32/hardware/stm32g4xxxx_comp.h | 2 +- arch/arm/src/stm32/stm32_fdcan_sock.c | 2 +- arch/arm/src/stm32/stm32_foc.c | 6 +- arch/arm/src/stm32/stm32_serial.c | 4 +- arch/arm/src/stm32f7/stm32f74xx75xx_rcc.c | 2 +- arch/arm/src/stm32h7/stm32_rcc.c | 2 +- arch/arm/src/stm32h7/stm32_spi_slave.c | 6 +- arch/arm/src/stm32l4/stm32l4_adc.c | 12 +- arch/arm/src/stm32l4/stm32l4_adc.h | 2 +- arch/mips/src/pic32mx/pic32mx_decodeirq.c | 2 +- arch/mips/src/pic32mz/pic32mz_decodeirq.c | 2 +- arch/risc-v/include/litex/irq.h | 2 +- arch/xtensa/src/esp32/esp32_wlan.c | 4 +- arch/xtensa/src/esp32s2/esp32s2_i2s.c | 4 +- arch/xtensa/src/esp32s3/esp32s3_wlan.c | 4 +- boards/arm/at32/at32f437-mini/src/at32_gpio.c | 4 +- boards/arm/at32/at32f437-mini/src/at32_usb.c | 6 +- .../arm/cxd56xx/common/src/cxd56_bmi160_scu.c | 4 +- .../cxd56xx/drivers/sensors/cxd5610_gnss.c | 4 +- .../cxd56xx/spresense/include/board_lcdpins.h | 2 +- .../imxrt/imxrt1064-evk/src/imxrt1064-evk.h | 2 +- .../arm/imxrt/teensy-4.x/src/imxrt_autoleds.c | 2 +- boards/arm/imxrt/teensy-4.x/src/imxrt_boot.c | 2 +- boards/arm/imxrt/teensy-4.x/src/teensy-4.h | 4 +- .../s32k1xx/rddrone-bms772/include/board.h | 2 +- boards/arm/s32k1xx/s32k118evb/include/board.h | 2 +- boards/arm/s32k1xx/s32k144evb/include/board.h | 2 +- boards/arm/s32k1xx/s32k146evb/include/board.h | 2 +- boards/arm/s32k1xx/s32k148evb/include/board.h | 2 +- .../arm/s32k1xx/ucans32k146/include/board.h | 2 +- .../arm/s32k3xx/mr-canhubk3/include/board.h | 2 +- boards/arm/s32k3xx/s32k344evb/include/board.h | 2 +- .../sama5/giant-board/include/board_492mhz.h | 2 +- .../sama5/jupiter-nano/include/board_498mhz.h | 2 +- boards/arm/stm32/b-g431b-esc1/include/board.h | 4 +- .../arm/stm32/nucleo-f103rb/include/board.h | 2 +- .../arm/stm32/nucleo-g431kb/src/stm32_dac.c | 2 +- .../arm/stm32/nucleo-g431rb/include/board.h | 6 +- .../stm32h7/nucleo-h743zi/src/nucleo-h743zi.h | 2 +- .../esp32/esp32-audio-kit/src/esp32_bringup.c | 4 +- .../esp32/esp32-devkitc/src/esp32_bringup.c | 4 +- .../esp32/esp32-lyrat/src/esp32_bringup.c | 4 +- .../esp32/esp32-pico-kit/src/esp32_bringup.c | 4 +- .../esp32s3-devkit/src/esp32s3_bringup.c | 2 +- drivers/audio/wm8994.h | 4 +- drivers/modem/alt1250/alt1250.h | 2 +- sched/sched/sched_get_stackinfo.c | 2 +- sched/task/task_exit.c | 6 +- tools/kconfig2html.c | 107 ++++++++++++------ tools/nxstyle.c | 2 +- 78 files changed, 193 insertions(+), 154 deletions(-) diff --git a/arch/arm/include/cxd56xx/gnss_type.h b/arch/arm/include/cxd56xx/gnss_type.h index 871fdaf773..95948d45bd 100644 --- a/arch/arm/include/cxd56xx/gnss_type.h +++ b/arch/arm/include/cxd56xx/gnss_type.h @@ -223,7 +223,7 @@ extern "C" /* GNSS positionig data elements */ -/* Day (UTC) */ +/* Day (UTC) */ struct cxd56_gnss_date_s { diff --git a/arch/arm/include/eoss3/chip.h b/arch/arm/include/eoss3/chip.h index 4c80933745..15e0d4c569 100644 --- a/arch/arm/include/eoss3/chip.h +++ b/arch/arm/include/eoss3/chip.h @@ -40,4 +40,4 @@ #define NVIC_SYSH_PRIORITY_MAX 0x00 /* Zero is maximum priority */ #define NVIC_SYSH_PRIORITY_STEP 0x20 /* Three bits of interrupt pri used */ -#endif /* __ARCH_ARM_INCLUDE_EFM32_CHIP_H */ \ No newline at end of file +#endif /* __ARCH_ARM_INCLUDE_EFM32_CHIP_H */ \ No newline at end of file diff --git a/arch/arm/include/imxrt/imxrt105x_irq.h b/arch/arm/include/imxrt/imxrt105x_irq.h index 8f9a134ea1..b89ea53322 100644 --- a/arch/arm/include/imxrt/imxrt105x_irq.h +++ b/arch/arm/include/imxrt/imxrt105x_irq.h @@ -136,7 +136,7 @@ #define IMXRT_IRQ_SRC (IMXRT_IRQ_EXTINT + 98) /* SRC interrupt */ #define IMXRT_IRQ_RESERVED99 (IMXRT_IRQ_EXTINT + 99) /* Reserved */ #define IMXRT_IRQ_GPT1 (IMXRT_IRQ_EXTINT + 100) /* GPT1 interrupt */ -#define IMXRT_IRQ_GPT2 (IMXRT_IRQ_EXTINT + 101) /* GPT2 interrupt */ +#define IMXRT_IRQ_GPT2 (IMXRT_IRQ_EXTINT + 101) /* GPT2 interrupt */ #define IMXRT_IRQ_FLEXPWM1_0 (IMXRT_IRQ_EXTINT + 102) /* FLEXPWM1 capture/compare/reload 0 interrupt */ #define IMXRT_IRQ_FLEXPWM1_1 (IMXRT_IRQ_EXTINT + 103) /* FLEXPWM1 capture/compare/reload 1 interrupt */ #define IMXRT_IRQ_FLEXPWM1_2 (IMXRT_IRQ_EXTINT + 104) /* FLEXPWM1 capture/compare/reload 2 interrupt */ diff --git a/arch/arm/include/imxrt/imxrt106x_irq.h b/arch/arm/include/imxrt/imxrt106x_irq.h index 00d443ca9a..7a4db1a564 100644 --- a/arch/arm/include/imxrt/imxrt106x_irq.h +++ b/arch/arm/include/imxrt/imxrt106x_irq.h @@ -136,7 +136,7 @@ #define IMXRT_IRQ_SRC (IMXRT_IRQ_EXTINT + 98) /* SRC interrupt */ #define IMXRT_IRQ_RESERVED99 (IMXRT_IRQ_EXTINT + 99) /* Reserved */ #define IMXRT_IRQ_GPT1 (IMXRT_IRQ_EXTINT + 100) /* GPT1 interrupt */ -#define IMXRT_IRQ_GPT2 (IMXRT_IRQ_EXTINT + 101) /* GPT2 interrupt */ +#define IMXRT_IRQ_GPT2 (IMXRT_IRQ_EXTINT + 101) /* GPT2 interrupt */ #define IMXRT_IRQ_FLEXPWM1_0 (IMXRT_IRQ_EXTINT + 102) /* FLEXPWM1 capture/compare/reload 0 interrupt */ #define IMXRT_IRQ_FLEXPWM1_1 (IMXRT_IRQ_EXTINT + 103) /* FLEXPWM1 capture/compare/reload 1 interrupt */ #define IMXRT_IRQ_FLEXPWM1_2 (IMXRT_IRQ_EXTINT + 104) /* FLEXPWM1 capture/compare/reload 2 interrupt */ diff --git a/arch/arm/include/kinetis/kinetis_k40irq.h b/arch/arm/include/kinetis/kinetis_k40irq.h index df627868df..45fae5898e 100644 --- a/arch/arm/include/kinetis/kinetis_k40irq.h +++ b/arch/arm/include/kinetis/kinetis_k40irq.h @@ -93,7 +93,7 @@ #define KINETIS_IRQ_CAN1ERR (KINETIS_IRQ_FIRST + 39) /* 39: CAN1 Error */ #define KINETIS_IRQ_CAN1TW (KINETIS_IRQ_FIRST + 40) /* 40: CAN1 Transmit Warning */ #define KINETIS_IRQ_CAN1RW (KINETIS_IRQ_FIRST + 41) /* 41: CAN1 Receive Warning */ -#define KINETIS_IRQ_CAN1WU (KINETIS_IRQ_FIRST + 42) /* 42: CAN1 Wake UP */ +#define KINETIS_IRQ_CAN1WU (KINETIS_IRQ_FIRST + 42) /* 42: CAN1 Wake UP */ #define KINETIS_IRQ_RESVD43 (KINETIS_IRQ_FIRST + 43) /* 43: Reserved */ #define KINETIS_IRQ_RESVD44 (KINETIS_IRQ_FIRST + 44) /* 44: Reserved */ #define KINETIS_IRQ_UART0S (KINETIS_IRQ_FIRST + 45) /* 45: UART0 status */ diff --git a/arch/arm/include/kinetis/kinetis_k60irq.h b/arch/arm/include/kinetis/kinetis_k60irq.h index ffddc2a4ed..0c791b48af 100644 --- a/arch/arm/include/kinetis/kinetis_k60irq.h +++ b/arch/arm/include/kinetis/kinetis_k60irq.h @@ -93,7 +93,7 @@ #define KINETIS_IRQ_CAN1ERR (KINETIS_IRQ_FIRST + 39) /* 39: CAN1 Error */ #define KINETIS_IRQ_CAN1TW (KINETIS_IRQ_FIRST + 40) /* 40: CAN1 Transmit Warning */ #define KINETIS_IRQ_CAN1RW (KINETIS_IRQ_FIRST + 41) /* 41: CAN1 Receive Warning */ -#define KINETIS_IRQ_CAN1WU (KINETIS_IRQ_FIRST + 42) /* 42: CAN1 Wake UP */ +#define KINETIS_IRQ_CAN1WU (KINETIS_IRQ_FIRST + 42) /* 42: CAN1 Wake UP */ #define KINETIS_IRQ_RESVD43 (KINETIS_IRQ_FIRST + 43) /* 43: Reserved */ #define KINETIS_IRQ_RESVD44 (KINETIS_IRQ_FIRST + 44) /* 44: Reserved */ #define KINETIS_IRQ_UART0S (KINETIS_IRQ_FIRST + 45) /* 45: UART0 status */ diff --git a/arch/arm/include/samv7/same70_irq.h b/arch/arm/include/samv7/same70_irq.h index a5fa01fd5e..4fdb6bf69c 100644 --- a/arch/arm/include/samv7/same70_irq.h +++ b/arch/arm/include/samv7/same70_irq.h @@ -153,11 +153,11 @@ #define SAM_IRQ_MCAN01 (SAM_IRQ_EXTINT+SAM_PID_MCAN01) /* CAN0 IRQ line 1 */ #define SAM_IRQ_MCAN10 (SAM_IRQ_EXTINT+SAM_PID_MCAN10) /* CAN1 IRQ line 0 */ #define SAM_IRQ_MCAN11 (SAM_IRQ_EXTINT+SAM_PID_MCAN11) /* CAN1 IRQ line 1 */ -#define SAM_IRQ_EMAC0 (SAM_IRQ_EXTINT+SAM_PID_EMAC0) /* Ethernet MAC */ +#define SAM_IRQ_EMAC0 (SAM_IRQ_EXTINT+SAM_PID_EMAC0) /* Ethernet MAC */ #define SAM_IRQ_AFEC1 (SAM_IRQ_EXTINT+SAM_PID_AFEC1) /* Analog Front End 1 */ #define SAM_IRQ_TWIHS2 (SAM_IRQ_EXTINT+SAM_PID_TWIHS2) /* Two-Wire Interface 2 */ #define SAM_IRQ_SPI1 (SAM_IRQ_EXTINT+SAM_PID_SPI1) /* Serial Peripheral Interface 1 */ -#define SAM_IRQ_QSPI (SAM_IRQ_EXTINT+SAM_PID_QSPI) /* Quad I/O Serial Peripheral Interface */ +#define SAM_IRQ_QSPI (SAM_IRQ_EXTINT+SAM_PID_QSPI) /* Quad I/O Serial Peripheral Interface */ #define SAM_IRQ_UART2 (SAM_IRQ_EXTINT+SAM_PID_UART2) /* Universal Asynchronous Receiver Transmitter 2 */ #define SAM_IRQ_UART3 (SAM_IRQ_EXTINT+SAM_PID_UART3) /* Universal Asynchronous Receiver Transmitter 3 */ #define SAM_IRQ_UART4 (SAM_IRQ_EXTINT+SAM_PID_UART4) /* Universal Asynchronous Receiver Transmitter 4 */ diff --git a/arch/arm/include/samv7/samv71_irq.h b/arch/arm/include/samv7/samv71_irq.h index 717c6a2649..2405117103 100644 --- a/arch/arm/include/samv7/samv71_irq.h +++ b/arch/arm/include/samv7/samv71_irq.h @@ -153,11 +153,11 @@ #define SAM_IRQ_MCAN01 (SAM_IRQ_EXTINT+SAM_PID_MCAN01) /* CAN0 IRQ line 1 */ #define SAM_IRQ_MCAN10 (SAM_IRQ_EXTINT+SAM_PID_MCAN10) /* CAN1 IRQ line 0 */ #define SAM_IRQ_MCAN11 (SAM_IRQ_EXTINT+SAM_PID_MCAN11) /* CAN1 IRQ line 1 */ -#define SAM_IRQ_EMAC0 (SAM_IRQ_EXTINT+SAM_PID_EMAC0) /* Ethernet MAC */ +#define SAM_IRQ_EMAC0 (SAM_IRQ_EXTINT+SAM_PID_EMAC0) /* Ethernet MAC */ #define SAM_IRQ_AFEC1 (SAM_IRQ_EXTINT+SAM_PID_AFEC1) /* Analog Front End 1 */ #define SAM_IRQ_TWIHS2 (SAM_IRQ_EXTINT+SAM_PID_TWIHS2) /* Two-Wire Interface 2 */ #define SAM_IRQ_SPI1 (SAM_IRQ_EXTINT+SAM_PID_SPI1) /* Serial Peripheral Interface 1 */ -#define SAM_IRQ_QSPI (SAM_IRQ_EXTINT+SAM_PID_QSPI) /* Quad I/O Serial Peripheral Interface */ +#define SAM_IRQ_QSPI (SAM_IRQ_EXTINT+SAM_PID_QSPI) /* Quad I/O Serial Peripheral Interface */ #define SAM_IRQ_UART2 (SAM_IRQ_EXTINT+SAM_PID_UART2) /* Universal Asynchronous Receiver Transmitter 2 */ #define SAM_IRQ_UART3 (SAM_IRQ_EXTINT+SAM_PID_UART3) /* Universal Asynchronous Receiver Transmitter 3 */ #define SAM_IRQ_UART4 (SAM_IRQ_EXTINT+SAM_PID_UART4) /* Universal Asynchronous Receiver Transmitter 4 */ diff --git a/arch/arm/src/at32/at32_can_sock.c b/arch/arm/src/at32/at32_can_sock.c index 72a84a1d82..0b2af93316 100644 --- a/arch/arm/src/at32/at32_can_sock.c +++ b/arch/arm/src/at32/at32_can_sock.c @@ -1149,10 +1149,10 @@ static int at32can_txavail(struct net_driver_s *dev) static int at32can_netdev_ioctl(struct net_driver_s *dev, int cmd, unsigned long arg) { -#if 0 +#if 0 struct at32_can_s *priv = (struct at32_can_s *)dev->d_private; -#endif - int ret = OK; +#endif + int ret = OK; switch (cmd) { diff --git a/arch/arm/src/at32/at32_eth.c b/arch/arm/src/at32/at32_eth.c index a83816bfec..b371537a5a 100644 --- a/arch/arm/src/at32/at32_eth.c +++ b/arch/arm/src/at32/at32_eth.c @@ -4020,7 +4020,7 @@ void arm_netinitialize(void) #ifdef CONFIG_AT32_CAN2 at32_cansockinitialize(2); -#endif +#endif #endif } diff --git a/arch/arm/src/at32/at32_serial.c b/arch/arm/src/at32/at32_serial.c index c126bd7710..b776cd9f7f 100644 --- a/arch/arm/src/at32/at32_serial.c +++ b/arch/arm/src/at32/at32_serial.c @@ -105,7 +105,7 @@ DMA_CCR_MSIZE_8BITS | \ CONFIG_USART_RXDMAPRIO) -#endif /* SERIAL_HAVE_RXDMA */ +#endif /* SERIAL_HAVE_RXDMA */ #ifdef SERIAL_HAVE_TXDMA diff --git a/arch/arm/src/at32/at32f43xx_flash.c b/arch/arm/src/at32/at32f43xx_flash.c index 75815f62f6..e1ade0f80d 100644 --- a/arch/arm/src/at32/at32f43xx_flash.c +++ b/arch/arm/src/at32/at32f43xx_flash.c @@ -102,7 +102,7 @@ static void flash_unlock(void) putreg32(FLASH_KEY2, AT32_FLASH_UNLOCK2); } } -#endif +#endif } static void flash_lock(void) @@ -112,7 +112,7 @@ static void flash_lock(void) #ifdef AT32_FLASH_BANK2_START if (AT32_FLASH_BANK2_START < AT32_FLASH_NPAGES) modifyreg32(AT32_FLASH_CTRL2, 0, FLASH_CTRL_OPLK); -#endif +#endif } #if defined(CONFIG_AT32_FLASH_WORKAROUND_DATA_CACHE_CORRUPTION_ON_RWW) diff --git a/arch/arm/src/cxd56xx/cxd56_nxaudio.c b/arch/arm/src/cxd56xx/cxd56_nxaudio.c index 8de5c84bd8..6551111157 100644 --- a/arch/arm/src/cxd56xx/cxd56_nxaudio.c +++ b/arch/arm/src/cxd56xx/cxd56_nxaudio.c @@ -352,13 +352,13 @@ static int cxd56_start(struct audio_lowerhalf_s *lower, #ifndef CONFIG_AUDIO_EXCLUDE_STOP static int cxd56_stop(struct audio_lowerhalf_s *lower, void *session); -#endif /* CONFIG_AUDIO_EXCLUDE_STOP */ +#endif /* CONFIG_AUDIO_EXCLUDE_STOP */ #ifndef CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME static int cxd56_pause(struct audio_lowerhalf_s *lower, void *session); static int cxd56_resume(struct audio_lowerhalf_s *lower, void *session); -#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */ +#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */ static int cxd56_reserve(struct audio_lowerhalf_s *lower, void **session); static int cxd56_release(struct audio_lowerhalf_s *lower, @@ -370,11 +370,11 @@ static int cxd56_configure(struct audio_lowerhalf_s *lower, static int cxd56_start(struct audio_lowerhalf_s *lower); #ifndef CONFIG_AUDIO_EXCLUDE_STOP static int cxd56_stop(struct audio_lowerhalf_s *lower); -#endif /* CONFIG_AUDIO_EXCLUDE_STOP */ +#endif /* CONFIG_AUDIO_EXCLUDE_STOP */ #ifndef CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME static int cxd56_pause(struct audio_lowerhalf_s *lower); static int cxd56_resume(struct audio_lowerhalf_s *lower); -#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */ +#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */ static int cxd56_reserve(struct audio_lowerhalf_s *lower); static int cxd56_release(struct audio_lowerhalf_s *lower); #endif /* CONFIG_AUDIO_MULTI_SESSION */ diff --git a/arch/arm/src/cxd56xx/cxd56_nxaudio.h b/arch/arm/src/cxd56xx/cxd56_nxaudio.h index 29baf26b27..1143e97f9a 100644 --- a/arch/arm/src/cxd56xx/cxd56_nxaudio.h +++ b/arch/arm/src/cxd56xx/cxd56_nxaudio.h @@ -282,7 +282,7 @@ struct cxd56_dev_s uint32_t samplerate; /* Sample rate */ #ifndef CONFIG_AUDIO_EXCLUDE_VOLUME int16_t volume; /* Output volume {0..63} */ -#endif /* CONFIG_AUDIO_EXCLUDE_VOLUME */ +#endif /* CONFIG_AUDIO_EXCLUDE_VOLUME */ uint8_t channels; /* Number of channels (1..8) */ uint16_t mic_gain; /* Mic gain */ diff --git a/arch/arm/src/imxrt/imxrt_lpspi.c b/arch/arm/src/imxrt/imxrt_lpspi.c index 199d586868..f821ec542f 100644 --- a/arch/arm/src/imxrt/imxrt_lpspi.c +++ b/arch/arm/src/imxrt/imxrt_lpspi.c @@ -1584,7 +1584,7 @@ static void imxrt_lpspi_exchange(struct spi_dev_s *dev, } } -#endif /* CONFIG_IMXRT_SPI_DMA */ +#endif /* CONFIG_IMXRT_SPI_DMA */ /**************************************************************************** * Name: imxrt_lpspi_sndblock diff --git a/arch/arm/src/kinetis/kinetis_spi.c b/arch/arm/src/kinetis/kinetis_spi.c index 91383c605f..79bc9521b0 100644 --- a/arch/arm/src/kinetis/kinetis_spi.c +++ b/arch/arm/src/kinetis/kinetis_spi.c @@ -1275,7 +1275,7 @@ static void spi_exchange(struct spi_dev_s *dev, const void *txbuffer, 0); } -#endif /* CONFIG_KINETIS_SPI_DMA */ +#endif /* CONFIG_KINETIS_SPI_DMA */ /**************************************************************************** * Name: spi_sndblock * diff --git a/arch/arm/src/nrf53/nrf53_adc.h b/arch/arm/src/nrf53/nrf53_adc.h index 3e31efc1ae..e5343efb35 100644 --- a/arch/arm/src/nrf53/nrf53_adc.h +++ b/arch/arm/src/nrf53/nrf53_adc.h @@ -159,4 +159,4 @@ struct adc_dev_s *nrf53_adcinitialize( const struct nrf53_adc_channel_s *chan, int channels); -#endif /* __ARCH_ARM_SRC_NRF53_NRF53_ADC_H */ +#endif /* __ARCH_ARM_SRC_NRF53_NRF53_ADC_H */ diff --git a/arch/arm/src/nrf53/nrf53_qspi.c b/arch/arm/src/nrf53/nrf53_qspi.c index bece954af8..573d508160 100644 --- a/arch/arm/src/nrf53/nrf53_qspi.c +++ b/arch/arm/src/nrf53/nrf53_qspi.c @@ -135,7 +135,7 @@ static const struct qspi_ops_s g_qspi_ops = .setbits = nrf53_qspi_setbits, #ifdef CONFIG_QSPI_HWFEATURES .hwfeatures = NULL, -#endif +#endif .command = nrf53_qspi_command, .memory = nrf53_qspi_memory, .alloc = nrf53_qspi_alloc, diff --git a/arch/arm/src/nrf91/nrf91_spu.c b/arch/arm/src/nrf91/nrf91_spu.c index eb5613e55f..b75dd0d8f5 100644 --- a/arch/arm/src/nrf91/nrf91_spu.c +++ b/arch/arm/src/nrf91/nrf91_spu.c @@ -169,7 +169,7 @@ static void nrf91_spu_periph(void) modifyreg32(NRF91_SPU_GPIOPORTPERM(0), 0xffffffff, 0); } -#endif /* NRF91_CONFIG_NONSECURE */ +#endif /* NRF91_CONFIG_NONSECURE */ /**************************************************************************** * Public Functions diff --git a/arch/arm/src/phy62xx/core_bumbee_m0.h b/arch/arm/src/phy62xx/core_bumbee_m0.h index 3358c412ad..d76decf966 100644 --- a/arch/arm/src/phy62xx/core_bumbee_m0.h +++ b/arch/arm/src/phy62xx/core_bumbee_m0.h @@ -102,4 +102,4 @@ extern "C" } #endif -#endif /* PHY_BUMBEE_M0 */ +#endif /* PHY_BUMBEE_M0 */ diff --git a/arch/arm/src/rp2040/rp2040_ws2812.c b/arch/arm/src/rp2040/rp2040_ws2812.c index f2fd2b477e..16b4af6d9c 100644 --- a/arch/arm/src/rp2040/rp2040_ws2812.c +++ b/arch/arm/src/rp2040/rp2040_ws2812.c @@ -412,17 +412,17 @@ static ssize_t my_write(struct file *filep, /* Copy swapping WWRRGGBB to GGRRBBWW */ - #ifdef CONFIG_BIG_ENDIAN +#ifdef CONFIG_BIG_ENDIAN xfer_p[3] = *data++; xfer_p[1] = *data++; xfer_p[0] = *data++; xfer_p[2] = *data++; - #else /* CONFIG_BIG_ENDIAN */ +#else /* CONFIG_BIG_ENDIAN */ xfer_p[1] = *data++; xfer_p[3] = *data++; xfer_p[2] = *data++; xfer_p[0] = *data++; - #endif /* CONFIG_BIG_ENDIAN */ +#endif /* CONFIG_BIG_ENDIAN */ xfer_p += 4; position += 4; @@ -490,17 +490,17 @@ static ssize_t my_read(struct file *filep, /* Copy swapping GGRRBBWW to WWRRGGBB */ - #ifdef CONFIG_BIG_ENDIAN +#ifdef CONFIG_BIG_ENDIAN *data++ = xfer_p[3]; *data++ = xfer_p[1]; *data++ = xfer_p[0]; *data++ = xfer_p[2]; - #else /* CONFIG_BIG_ENDIAN */ +#else /* CONFIG_BIG_ENDIAN */ *data++ = xfer_p[1]; *data++ = xfer_p[3]; *data++ = xfer_p[2]; *data++ = xfer_p[0]; - #endif /* CONFIG_BIG_ENDIAN */ +#endif /* CONFIG_BIG_ENDIAN */ xfer_p += 4; position += 4; diff --git a/arch/arm/src/s32k1xx/s32k1xx_lpspi.c b/arch/arm/src/s32k1xx/s32k1xx_lpspi.c index a17dc91164..c76865dc31 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_lpspi.c +++ b/arch/arm/src/s32k1xx/s32k1xx_lpspi.c @@ -1763,7 +1763,7 @@ static void s32k1xx_lpspi_exchange(struct spi_dev_s *dev, (uintptr_t)rxbuffer + nbytes); } -#endif /* CONFIG_S32K1XX_SPI_DMA */ +#endif /* CONFIG_S32K1XX_SPI_DMA */ /**************************************************************************** * Name: s32k1xx_lpspi_sndblock diff --git a/arch/arm/src/s32k3xx/s32k3xx_lpspi.c b/arch/arm/src/s32k3xx/s32k3xx_lpspi.c index f6bb890920..679397c580 100644 --- a/arch/arm/src/s32k3xx/s32k3xx_lpspi.c +++ b/arch/arm/src/s32k3xx/s32k3xx_lpspi.c @@ -1827,7 +1827,7 @@ static void s32k3xx_lpspi_exchange(struct spi_dev_s *dev, } } -#endif /* CONFIG_S32K3XX_SPI_DMA */ +#endif /* CONFIG_S32K3XX_SPI_DMA */ /**************************************************************************** * Name: s32k3xx_lpspi_sndblock diff --git a/arch/arm/src/sama5/sam_spi.c b/arch/arm/src/sama5/sam_spi.c index 343b951c43..d3579a1c57 100644 --- a/arch/arm/src/sama5/sam_spi.c +++ b/arch/arm/src/sama5/sam_spi.c @@ -302,7 +302,7 @@ static const struct spi_ops_s g_spi0ops = .setfrequency = spi_setfrequency, #ifdef CONFIG_SPI_DELAY_CONTROL .setdelay = spi_setdelay, -#endif +#endif .setmode = spi_setmode, .setbits = spi_setbits, #ifdef CONFIG_SPI_HWFEATURES diff --git a/arch/arm/src/samv7/hardware/sam_pwm.h b/arch/arm/src/samv7/hardware/sam_pwm.h index 078c2885a1..b714b8f88b 100644 --- a/arch/arm/src/samv7/hardware/sam_pwm.h +++ b/arch/arm/src/samv7/hardware/sam_pwm.h @@ -463,4 +463,4 @@ #define LEBR_PWMHFEN (1 << 18) /* Bit 17: PWMH Falling Edge Enable */ #define LEBR_PWMHREN (1 << 19) /* Bit 18: PWMH Rising Edge Enable */ -#endif /* CONFIG_SAMV7_PWM */ +#endif /* CONFIG_SAMV7_PWM */ diff --git a/arch/arm/src/samv7/sam_qspi_spi.c b/arch/arm/src/samv7/sam_qspi_spi.c index 0595b780a7..9bf9ac6fb8 100644 --- a/arch/arm/src/samv7/sam_qspi_spi.c +++ b/arch/arm/src/samv7/sam_qspi_spi.c @@ -741,7 +741,7 @@ static void qspi_spi_recvblock(struct spi_dev_s *dev, void *buffer, qspi_spi_exchange(dev, NULL, buffer, nwords); } -#endif /* CONFIG_SPI_EXCHANGE */ +#endif /* CONFIG_SPI_EXCHANGE */ /**************************************************************************** * Public Functions diff --git a/arch/arm/src/stm32/hardware/stm32_dbgmcu.h b/arch/arm/src/stm32/hardware/stm32_dbgmcu.h index 1fe4b2534c..591a4f3231 100644 --- a/arch/arm/src/stm32/hardware/stm32_dbgmcu.h +++ b/arch/arm/src/stm32/hardware/stm32_dbgmcu.h @@ -145,7 +145,7 @@ # define DBGMCU_APB2_TIM10STOP (1 << 3) /* Bit 3: TIM10 stopped when core is halted */ # define DBGMCU_APB2_TIM11STOP (1 << 4) /* Bit 4: TIM11 stopped when core is halted */ #endif -#endif /* CONFIG_STM32_HAVE_IP_DBGMCU_V2 */ +#endif /* CONFIG_STM32_HAVE_IP_DBGMCU_V2 */ #ifdef CONFIG_STM32_HAVE_IP_DBGMCU_V3 @@ -178,7 +178,7 @@ # define DBGMCU_APB2_TIM20STOP (1 << 20) /* Bit 20: TIM20 stopped when core is halted */ # define DBGMCU_APB2_HRTIMSTOP (1 << 26) /* Bit 20: HRTIM stopped when core is halted */ -#endif /* CONFIG_STM32_HAVE_IP_DBGMCU_V3 */ +#endif /* CONFIG_STM32_HAVE_IP_DBGMCU_V3 */ /**************************************************************************** * Public Types diff --git a/arch/arm/src/stm32/hardware/stm32f33xxx_comp.h b/arch/arm/src/stm32/hardware/stm32f33xxx_comp.h index 9ed17ed291..f341235868 100644 --- a/arch/arm/src/stm32/hardware/stm32f33xxx_comp.h +++ b/arch/arm/src/stm32/hardware/stm32f33xxx_comp.h @@ -113,4 +113,4 @@ #define COMP_CSR_OUT (1 << 30) /* Bit 30: comparator output */ #define COMP_CSR_LOCK (1 << 31) /* Bit 31: comparator lock */ -#endif /* __ARCH_ARM_SRC_STM32_HARDWARE_STM32F33XXX_COMP_H */ +#endif /* __ARCH_ARM_SRC_STM32_HARDWARE_STM32F33XXX_COMP_H */ diff --git a/arch/arm/src/stm32/hardware/stm32g4xxxx_comp.h b/arch/arm/src/stm32/hardware/stm32g4xxxx_comp.h index 51d37fe3f2..d89ec49ebc 100644 --- a/arch/arm/src/stm32/hardware/stm32g4xxxx_comp.h +++ b/arch/arm/src/stm32/hardware/stm32g4xxxx_comp.h @@ -164,4 +164,4 @@ #define COMP_CSR_VALUE (1 << 30) /* Bit 30: Comparator output status */ #define COMP_CSR_LOCK (1 << 31) /* Bit 31: Register lock */ -#endif /* __ARCH_ARM_SRC_STM32_HARDWARE_STM32G4XXXX_COMP_H */ +#endif /* __ARCH_ARM_SRC_STM32_HARDWARE_STM32G4XXXX_COMP_H */ diff --git a/arch/arm/src/stm32/stm32_fdcan_sock.c b/arch/arm/src/stm32/stm32_fdcan_sock.c index 6f7c4f586b..d98c0b030e 100644 --- a/arch/arm/src/stm32/stm32_fdcan_sock.c +++ b/arch/arm/src/stm32/stm32_fdcan_sock.c @@ -3191,7 +3191,7 @@ static int fdcan_netdev_ioctl(struct net_driver_s *dev, int cmd, return ret; } -#endif /* CONFIG_NETDEV_IOCTL */ +#endif /* CONFIG_NETDEV_IOCTL */ /**************************************************************************** * Public Functions diff --git a/arch/arm/src/stm32/stm32_foc.c b/arch/arm/src/stm32/stm32_foc.c index f2da972753..eb4e8cd2a1 100644 --- a/arch/arm/src/stm32/stm32_foc.c +++ b/arch/arm/src/stm32/stm32_foc.c @@ -161,7 +161,7 @@ # if CONFIG_STM32_TIM1_MODE != 2 # error TIM1 must be configured in center-aligned mode 1 # endif -#endif /* CONFIG_STM32_FOC_FOC0 */ +#endif /* CONFIG_STM32_FOC_FOC0 */ /* FOC1 always use TIMER8 for PWM */ @@ -901,7 +901,7 @@ static struct stm32_foc_adccmn_s g_stm32_foc_adccmn123 = .cntr = 0, .lock = NXMUTEX_INITIALIZER, }; -# endif /* CONFIG_STM32_HAVE_IP_ADC_V1 */ +# endif /* CONFIG_STM32_HAVE_IP_ADC_V1 */ # ifdef CONFIG_STM32_HAVE_IP_ADC_V2 # if defined(CONFIG_STM32_HAVE_ADC1) || defined(CONFIG_STM32_HAVE_ADC2) @@ -2457,7 +2457,7 @@ struct adc_dev_s *stm32_foc_adc_init(struct stm32_foc_adc_s *adc_cfg) { adc_chan[i] = adc_cfg->chan[i - 1]; } -#endif /* CONFIG_STM32_FOC_G4_ADCCHAN0_WORKAROUND */ +#endif /* CONFIG_STM32_FOC_G4_ADCCHAN0_WORKAROUND */ /* Get the ADC interface */ diff --git a/arch/arm/src/stm32/stm32_serial.c b/arch/arm/src/stm32/stm32_serial.c index d58944fb2e..98888ff135 100644 --- a/arch/arm/src/stm32/stm32_serial.c +++ b/arch/arm/src/stm32/stm32_serial.c @@ -218,7 +218,7 @@ CONFIG_USART_RXDMAPRIO) # endif -#endif /* SERIAL_HAVE_RXDMA */ +#endif /* SERIAL_HAVE_RXDMA */ #ifdef SERIAL_HAVE_TXDMA @@ -368,7 +368,7 @@ # error "Unknown STM32 DMA" # endif -#endif /* SERIAL_HAVE_TXDMA */ +#endif /* SERIAL_HAVE_TXDMA */ /* Power management definitions */ diff --git a/arch/arm/src/stm32f7/stm32f74xx75xx_rcc.c b/arch/arm/src/stm32f7/stm32f74xx75xx_rcc.c index e288291d88..d27bd83c4e 100644 --- a/arch/arm/src/stm32f7/stm32f74xx75xx_rcc.c +++ b/arch/arm/src/stm32f7/stm32f74xx75xx_rcc.c @@ -226,7 +226,7 @@ static inline void rcc_enableahb1(void) regval |= RCC_AHB1ENR_OTGHSEN; #endif -#endif /* CONFIG_STM32F7_OTGFSHS */ +#endif /* CONFIG_STM32F7_OTGFSHS */ putreg32(regval, STM32_RCC_AHB1ENR); /* Enable peripherals */ } diff --git a/arch/arm/src/stm32h7/stm32_rcc.c b/arch/arm/src/stm32h7/stm32_rcc.c index e7b3f30080..55e6b9cbf8 100644 --- a/arch/arm/src/stm32h7/stm32_rcc.c +++ b/arch/arm/src/stm32h7/stm32_rcc.c @@ -120,7 +120,7 @@ void stm32_clockconfig(void) stm32_stdclockconfig(); # endif -#endif /* !CONFIG_STM32H7_BYPASS_CLOCKCONFIG */ +#endif /* !CONFIG_STM32H7_BYPASS_CLOCKCONFIG */ /* Enable peripheral clocking */ diff --git a/arch/arm/src/stm32h7/stm32_spi_slave.c b/arch/arm/src/stm32h7/stm32_spi_slave.c index b35cd6d4ca..b8e9e7e90e 100644 --- a/arch/arm/src/stm32h7/stm32_spi_slave.c +++ b/arch/arm/src/stm32h7/stm32_spi_slave.c @@ -121,7 +121,7 @@ # if SPI123_KERNEL_CLOCK_FREQ > 200000000 # error Not supported SPI123 frequency # endif -#endif /* SPI123 */ +#endif /* SPI123 */ #if defined(CONFIG_STM32H7_SPI4_SLAVE) || defined(CONFIG_STM32H7_SPI5_SLAVE) # if STM32_RCC_D2CCIP1R_SPI45SRC == RCC_D2CCIP1R_SPI45SEL_APB @@ -132,7 +132,7 @@ # if SPI45_KERNEL_CLOCK_FREQ > 100000000 # error Not supported SPI45 frequency # endif -#endif /* SPI45 */ +#endif /* SPI45 */ #if defined(CONFIG_STM32H7_SPI6_SLAVE) # if STM32_RCC_D3CCIPR_SPI6SRC == RCC_D3CCIPR_SPI6SEL_PCLK4 @@ -143,7 +143,7 @@ # if SPI6_KERNEL_CLOCK_FREQ > 100000000 # error Not supported SPI6 frequency # endif -#endif /* SPI6 */ +#endif /* SPI6 */ #if defined (CONFIG_STM32H7_SPI_SLAVE_QSIZE) # if CONFIG_STM32H7_SPI_SLAVE_QSIZE > 65535 diff --git a/arch/arm/src/stm32l4/stm32l4_adc.c b/arch/arm/src/stm32l4/stm32l4_adc.c index d438eb241e..096d2c1f96 100644 --- a/arch/arm/src/stm32l4/stm32l4_adc.c +++ b/arch/arm/src/stm32l4/stm32l4_adc.c @@ -1169,7 +1169,7 @@ static void adc_inj_startconv(struct stm32_dev_s *priv, bool enable) } } } -#endif /* ADC_HAVE_INJECTED */ +#endif /* ADC_HAVE_INJECTED */ /**************************************************************************** * Name: adc_rccreset @@ -2279,7 +2279,7 @@ static int adc3_interrupt(int irq, void *context, void *arg) return OK; } #endif -#endif /* CONFIG_STM32L4_ADC_NOIRQ */ +#endif /* CONFIG_STM32L4_ADC_NOIRQ */ #ifdef ADC_HAVE_DMA /**************************************************************************** @@ -2408,7 +2408,7 @@ static void adc_dmaconvcallback(DMA_HANDLE handle, adc_modifyreg(priv, STM32L4_ADC_CFGR_OFFSET, 0, ADC_CFGR_DMAEN); } #endif -#endif /* ADC_HAVE_DMA */ +#endif /* ADC_HAVE_DMA */ #ifdef CONFIG_STM32L4_ADC_LL_OPS @@ -2589,7 +2589,7 @@ static void adc_llops_dma_stop(struct stm32_adc_dev_s *adc) } } -#endif /* ADC_HAVE_DMA */ +#endif /* ADC_HAVE_DMA */ /**************************************************************************** * Name: adc_llops_extsel_set @@ -2644,7 +2644,7 @@ static void adc_llops_inj_startconv(struct stm32_adc_dev_s *dev, adc_inj_startconv(priv, enable); } -#endif /* ADC_HAVE_INJECTED */ +#endif /* ADC_HAVE_INJECTED */ /**************************************************************************** * Name: adc_llops_dumpregs @@ -2657,7 +2657,7 @@ static void adc_llops_dumpregs(struct stm32_adc_dev_s *dev) adc_dumpregs(priv); } -#endif /* CONFIG_STM32L4_ADC_LL_OPS */ +#endif /* CONFIG_STM32L4_ADC_LL_OPS */ /**************************************************************************** * Public Functions diff --git a/arch/arm/src/stm32l4/stm32l4_adc.h b/arch/arm/src/stm32l4/stm32l4_adc.h index c3085f25c3..f90da52ca4 100644 --- a/arch/arm/src/stm32l4/stm32l4_adc.h +++ b/arch/arm/src/stm32l4/stm32l4_adc.h @@ -582,7 +582,7 @@ struct stm32_adc_ops_s void (*dump_regs)(struct stm32_adc_dev_s *dev); }; -#endif /* CONFIG_STM32L4_ADC_LL_OPS */ +#endif /* CONFIG_STM32L4_ADC_LL_OPS */ /**************************************************************************** * Public Function Prototypes diff --git a/arch/mips/src/pic32mx/pic32mx_decodeirq.c b/arch/mips/src/pic32mx/pic32mx_decodeirq.c index c6df9331e1..ce4cf4c865 100644 --- a/arch/mips/src/pic32mx/pic32mx_decodeirq.c +++ b/arch/mips/src/pic32mx/pic32mx_decodeirq.c @@ -24,7 +24,7 @@ #include -#include +#include #include #include diff --git a/arch/mips/src/pic32mz/pic32mz_decodeirq.c b/arch/mips/src/pic32mz/pic32mz_decodeirq.c index 879bc26f6a..ec1f461cb8 100644 --- a/arch/mips/src/pic32mz/pic32mz_decodeirq.c +++ b/arch/mips/src/pic32mz/pic32mz_decodeirq.c @@ -24,7 +24,7 @@ #include -#include +#include #include #include diff --git a/arch/risc-v/include/litex/irq.h b/arch/risc-v/include/litex/irq.h index 67919272ba..22e4660c8d 100644 --- a/arch/risc-v/include/litex/irq.h +++ b/arch/risc-v/include/litex/irq.h @@ -29,7 +29,7 @@ #include CONFIG_LITEX_CUSTOM_IRQ_DEFINITIONS_PATH #else -#include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/arch/xtensa/src/esp32/esp32_wlan.c b/arch/xtensa/src/esp32/esp32_wlan.c index e85aa35729..823a5b51ee 100644 --- a/arch/xtensa/src/esp32/esp32_wlan.c +++ b/arch/xtensa/src/esp32/esp32_wlan.c @@ -1594,7 +1594,7 @@ static int wlan_ioctl(struct net_driver_s *dev, return ret; } -#endif /* CONFIG_NETDEV_IOCTL */ +#endif /* CONFIG_NETDEV_IOCTL */ /**************************************************************************** * Name: esp32_net_initialize @@ -1923,4 +1923,4 @@ int esp32_wlan_softap_initialize(void) } #endif /* ESP32_WLAN_HAS_SOFTAP */ -#endif /* CONFIG_ESP32_WIFI */ +#endif /* CONFIG_ESP32_WIFI */ diff --git a/arch/xtensa/src/esp32s2/esp32s2_i2s.c b/arch/xtensa/src/esp32s2/esp32s2_i2s.c index 5ca9663ddf..10e8bfdf12 100644 --- a/arch/xtensa/src/esp32s2/esp32s2_i2s.c +++ b/arch/xtensa/src/esp32s2/esp32s2_i2s.c @@ -356,12 +356,12 @@ static int i2s_receive(struct i2s_dev_s *dev, struct ap_buffer_s *apb, static const struct i2s_ops_s g_i2sops = { - #ifdef I2S_HAVE_TX +#ifdef I2S_HAVE_TX .i2s_txchannels = i2s_txchannels, .i2s_txsamplerate = i2s_txsamplerate, .i2s_txdatawidth = i2s_txdatawidth, .i2s_send = i2s_send, - #endif /* I2S_HAVE_TX */ +#endif /* I2S_HAVE_TX */ #ifdef I2S_HAVE_RX .i2s_rxchannels = i2s_rxchannels, diff --git a/arch/xtensa/src/esp32s3/esp32s3_wlan.c b/arch/xtensa/src/esp32s3/esp32s3_wlan.c index c96994e63d..26b7b5c10f 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_wlan.c +++ b/arch/xtensa/src/esp32s3/esp32s3_wlan.c @@ -1258,7 +1258,7 @@ static int wlan_ioctl(struct net_driver_s *dev, return ret; } -#endif /* CONFIG_NETDEV_IOCTL */ +#endif /* CONFIG_NETDEV_IOCTL */ /**************************************************************************** * Name: esp32s3_net_initialize @@ -1595,4 +1595,4 @@ int esp32s3_wlan_softap_initialize(void) } #endif /* ESP32S3_WLAN_HAS_SOFTAP */ -#endif /* CONFIG_ESP32S3_WIFI */ +#endif /* CONFIG_ESP32S3_WIFI */ diff --git a/boards/arm/at32/at32f437-mini/src/at32_gpio.c b/boards/arm/at32/at32f437-mini/src/at32_gpio.c index 6fe0fd13e9..1402e838e4 100644 --- a/boards/arm/at32/at32f437-mini/src/at32_gpio.c +++ b/boards/arm/at32/at32f437-mini/src/at32_gpio.c @@ -101,9 +101,9 @@ static const struct gpio_operations_s gpint_ops = #if (BOARD_NGPIOIN > 0) static const uint32_t g_gpioinputs[BOARD_NGPIOIN] = { -#if 0 +#if 0 GPIO_IN1, -#endif +#endif }; static struct at32gpio_dev_s g_gpin[BOARD_NGPIOIN]; diff --git a/boards/arm/at32/at32f437-mini/src/at32_usb.c b/boards/arm/at32/at32f437-mini/src/at32_usb.c index e79c653663..99c481c5ff 100644 --- a/boards/arm/at32/at32f437-mini/src/at32_usb.c +++ b/boards/arm/at32/at32f437-mini/src/at32_usb.c @@ -141,7 +141,7 @@ void at32_usbinitialize(void) at32_configgpio(GPIO_OTGFS_VBUS); at32_configgpio(GPIO_OTGFS_PWRON); at32_configgpio(GPIO_OTGFS_OVER); -#endif +#endif #endif } @@ -294,7 +294,7 @@ void at32_usbhost_vbusdrive(int iface, bool enable) at32_gpiowrite(GPIO_OTGFS_PWRON, true); } -#endif +#endif } #endif @@ -320,7 +320,7 @@ int at32_setup_overcurrent(xcpt_t handler, void *arg) { #ifdef CONFIG_AT32_OTGFS_VBUS_CONTROL return at32_gpiosetevent(GPIO_OTGFS_OVER, true, true, true, handler, arg); -#endif +#endif return 0; } diff --git a/boards/arm/cxd56xx/common/src/cxd56_bmi160_scu.c b/boards/arm/cxd56xx/common/src/cxd56_bmi160_scu.c index 8d384a8f32..ff9ad32873 100644 --- a/boards/arm/cxd56xx/common/src/cxd56_bmi160_scu.c +++ b/boards/arm/cxd56xx/common/src/cxd56_bmi160_scu.c @@ -165,5 +165,5 @@ int board_bmi160_initialize(int bus) return ret; } -#endif /* CONFIG_SENSORS_BMI160_SCU_SPI */ -#endif /* CONFIG_SENSORS_BMI160_SCU */ +#endif /* CONFIG_SENSORS_BMI160_SCU_SPI */ +#endif /* CONFIG_SENSORS_BMI160_SCU */ diff --git a/boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c b/boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c index b52d16a3d9..8be65863e2 100644 --- a/boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c +++ b/boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c @@ -46,11 +46,11 @@ #ifndef MIN # define MIN(a,b) (((a) < (b)) ? (a) : (b)) -#endif /* MIN */ +#endif /* MIN */ #ifndef MAX # define MAX(a,b) (((a) > (b)) ? (a) : (b)) -#endif /* MAX */ +#endif /* MAX */ /* Configurations */ diff --git a/boards/arm/cxd56xx/spresense/include/board_lcdpins.h b/boards/arm/cxd56xx/spresense/include/board_lcdpins.h index 04cddfb8ad..77a9308118 100644 --- a/boards/arm/cxd56xx/spresense/include/board_lcdpins.h +++ b/boards/arm/cxd56xx/spresense/include/board_lcdpins.h @@ -143,4 +143,4 @@ #endif -#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_BOARD_LCDPINS_H */ +#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_BOARD_LCDPINS_H */ diff --git a/boards/arm/imxrt/imxrt1064-evk/src/imxrt1064-evk.h b/boards/arm/imxrt/imxrt1064-evk/src/imxrt1064-evk.h index 3a6111264c..1f78427bc0 100644 --- a/boards/arm/imxrt/imxrt1064-evk/src/imxrt1064-evk.h +++ b/boards/arm/imxrt/imxrt1064-evk/src/imxrt1064-evk.h @@ -329,7 +329,7 @@ int imxrt_flexspi_nor_initialize(void); #ifdef HAVE_PROGMEM_CHARDEV int imxrt_progmem_init(void); -#endif /* HAVE_PROGMEM_CHARDEV */ +#endif /* HAVE_PROGMEM_CHARDEV */ #endif #endif /* __ASSEMBLY__ */ diff --git a/boards/arm/imxrt/teensy-4.x/src/imxrt_autoleds.c b/boards/arm/imxrt/teensy-4.x/src/imxrt_autoleds.c index 2588d4296e..63e5034d49 100644 --- a/boards/arm/imxrt/teensy-4.x/src/imxrt_autoleds.c +++ b/boards/arm/imxrt/teensy-4.x/src/imxrt_autoleds.c @@ -161,4 +161,4 @@ void board_autoled_off(int led) imxrt_gpio_write(GPIO_LED, false); /* Low illuminates */ } -#endif /* CONFIG_ARCH_LEDS */ +#endif /* CONFIG_ARCH_LEDS */ diff --git a/boards/arm/imxrt/teensy-4.x/src/imxrt_boot.c b/boards/arm/imxrt/teensy-4.x/src/imxrt_boot.c index 08d580e170..e6583b0837 100644 --- a/boards/arm/imxrt/teensy-4.x/src/imxrt_boot.c +++ b/boards/arm/imxrt/teensy-4.x/src/imxrt_boot.c @@ -115,4 +115,4 @@ void board_late_initialize(void) imxrt_bringup(); } -#endif /* CONFIG_BOARD_LATE_INITIALIZE */ +#endif /* CONFIG_BOARD_LATE_INITIALIZE */ diff --git a/boards/arm/imxrt/teensy-4.x/src/teensy-4.h b/boards/arm/imxrt/teensy-4.x/src/teensy-4.h index 94b9371e54..ca521b0f6f 100644 --- a/boards/arm/imxrt/teensy-4.x/src/teensy-4.h +++ b/boards/arm/imxrt/teensy-4.x/src/teensy-4.h @@ -268,5 +268,5 @@ void imxrt_i2c_setup(void); void imxrt_autoled_initialize(void); #endif -#endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_TEENSY_4X_SRC_TEENSY_4_H */ +#endif /* __ASSEMBLY__ */ +#endif /* __BOARDS_ARM_TEENSY_4X_SRC_TEENSY_4_H */ diff --git a/boards/arm/s32k1xx/rddrone-bms772/include/board.h b/boards/arm/s32k1xx/rddrone-bms772/include/board.h index 0e7c40ba52..d9eb92e642 100644 --- a/boards/arm/s32k1xx/rddrone-bms772/include/board.h +++ b/boards/arm/s32k1xx/rddrone-bms772/include/board.h @@ -147,4 +147,4 @@ #define PIN_CAN0_RX PIN_CAN0_RX_3 /* PTE4 */ #define PIN_CAN0_TX PIN_CAN0_TX_3 /* PTE5 */ -#endif /* __BOARDS_ARM_S32K1XX_RDDRONE_BMS772_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_S32K1XX_RDDRONE_BMS772_INCLUDE_BOARD_H */ diff --git a/boards/arm/s32k1xx/s32k118evb/include/board.h b/boards/arm/s32k1xx/s32k118evb/include/board.h index a0061be602..96ce4ebfaa 100644 --- a/boards/arm/s32k1xx/s32k118evb/include/board.h +++ b/boards/arm/s32k1xx/s32k118evb/include/board.h @@ -129,4 +129,4 @@ #define PIN_CAN0_RX PIN_CAN0_RX_3 /* PTE4 */ #define PIN_CAN0_TX PIN_CAN0_TX_3 /* PTE5 */ -#endif /* __BOARDS_ARM_S32K1XX_S32K118EVB_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_S32K1XX_S32K118EVB_INCLUDE_BOARD_H */ diff --git a/boards/arm/s32k1xx/s32k144evb/include/board.h b/boards/arm/s32k1xx/s32k144evb/include/board.h index 49e956af22..ec93b064e1 100644 --- a/boards/arm/s32k1xx/s32k144evb/include/board.h +++ b/boards/arm/s32k1xx/s32k144evb/include/board.h @@ -131,4 +131,4 @@ #define PIN_CAN0_RX PIN_CAN0_RX_3 /* PTE4 */ #define PIN_CAN0_TX PIN_CAN0_TX_3 /* PTE5 */ -#endif /* __BOARDS_ARM_S32K1XX_S32K144EVB_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_S32K1XX_S32K144EVB_INCLUDE_BOARD_H */ diff --git a/boards/arm/s32k1xx/s32k146evb/include/board.h b/boards/arm/s32k1xx/s32k146evb/include/board.h index 5ad7efef64..650232821b 100644 --- a/boards/arm/s32k1xx/s32k146evb/include/board.h +++ b/boards/arm/s32k1xx/s32k146evb/include/board.h @@ -131,4 +131,4 @@ #define PIN_CAN0_RX PIN_CAN0_RX_4 /* PTE4 */ #define PIN_CAN0_TX PIN_CAN0_TX_4 /* PTE5 */ -#endif /* __BOARDS_ARM_S32K1XX_S32K146EVB_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_S32K1XX_S32K146EVB_INCLUDE_BOARD_H */ diff --git a/boards/arm/s32k1xx/s32k148evb/include/board.h b/boards/arm/s32k1xx/s32k148evb/include/board.h index 82a2f3667c..1990dd9104 100644 --- a/boards/arm/s32k1xx/s32k148evb/include/board.h +++ b/boards/arm/s32k1xx/s32k148evb/include/board.h @@ -131,4 +131,4 @@ #define PIN_CAN0_RX PIN_CAN0_RX_4 /* PTE4 */ #define PIN_CAN0_TX PIN_CAN0_TX_4 /* PTE5 */ -#endif /* __BOARDS_ARM_S32K1XX_S32K148EVB_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_S32K1XX_S32K148EVB_INCLUDE_BOARD_H */ diff --git a/boards/arm/s32k1xx/ucans32k146/include/board.h b/boards/arm/s32k1xx/ucans32k146/include/board.h index 3c49fba167..3ac8a27d41 100644 --- a/boards/arm/s32k1xx/ucans32k146/include/board.h +++ b/boards/arm/s32k1xx/ucans32k146/include/board.h @@ -158,4 +158,4 @@ #define PIN_CAN1_TX PIN_CAN1_TX_1 /* PTA13 */ #define PIN_CAN1_STB (PIN_PTE10 | GPIO_OUTPUT) -#endif /* __BOARDS_ARM_S32K1XX_UCANS32K146_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_S32K1XX_UCANS32K146_INCLUDE_BOARD_H */ diff --git a/boards/arm/s32k3xx/mr-canhubk3/include/board.h b/boards/arm/s32k3xx/mr-canhubk3/include/board.h index 0c59590fda..be0c9a2340 100644 --- a/boards/arm/s32k3xx/mr-canhubk3/include/board.h +++ b/boards/arm/s32k3xx/mr-canhubk3/include/board.h @@ -321,4 +321,4 @@ #define PIN_EMAC_MII_RMII_MDIO PIN_EMAC_MII_RMII_MDIO_2 /* PTD16 */ #define PIN_EMAC_MII_RMII_TX_CLK PIN_EMAC_MII_RMII_TX_CLK_2 /* PTD6 */ -#endif /* __BOARDS_ARM_S32K3XX_MR_CANHUBK3_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_S32K3XX_MR_CANHUBK3_INCLUDE_BOARD_H */ diff --git a/boards/arm/s32k3xx/s32k344evb/include/board.h b/boards/arm/s32k3xx/s32k344evb/include/board.h index a6d8d0623c..b01896354d 100644 --- a/boards/arm/s32k3xx/s32k344evb/include/board.h +++ b/boards/arm/s32k3xx/s32k344evb/include/board.h @@ -165,4 +165,4 @@ #define PIN_CAN0_TX PIN_CAN0_TX_1 /* PTA7 */ #define PIN_CAN0_RX PIN_CAN0_RX_1 /* PTA6 */ -#endif /* __BOARDS_ARM_S32K3XX_S32K344EVB_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_S32K3XX_S32K344EVB_INCLUDE_BOARD_H */ diff --git a/boards/arm/sama5/giant-board/include/board_492mhz.h b/boards/arm/sama5/giant-board/include/board_492mhz.h index 9e3068e742..fab4e89899 100644 --- a/boards/arm/sama5/giant-board/include/board_492mhz.h +++ b/boards/arm/sama5/giant-board/include/board_492mhz.h @@ -204,4 +204,4 @@ extern "C" #endif #endif /* !__ASSEMBLY__ */ -#endif /* __BOARDS_ARM_SAMA5_GIANT_BOARD_INCLUDE_BOARD_492MHZ_H */ +#endif /* __BOARDS_ARM_SAMA5_GIANT_BOARD_INCLUDE_BOARD_492MHZ_H */ diff --git a/boards/arm/sama5/jupiter-nano/include/board_498mhz.h b/boards/arm/sama5/jupiter-nano/include/board_498mhz.h index e0dff1433d..85a1e193b6 100644 --- a/boards/arm/sama5/jupiter-nano/include/board_498mhz.h +++ b/boards/arm/sama5/jupiter-nano/include/board_498mhz.h @@ -203,4 +203,4 @@ extern "C" #endif #endif /* !__ASSEMBLY__ */ -#endif /* __BOARDS_ARM_SAMA5_JUPITER_NANO_INCLUDE_BOARD_498MHZ_H */ +#endif /* __BOARDS_ARM_SAMA5_JUPITER_NANO_INCLUDE_BOARD_498MHZ_H */ diff --git a/boards/arm/stm32/b-g431b-esc1/include/board.h b/boards/arm/stm32/b-g431b-esc1/include/board.h index 7a32696c30..24a4a44b8b 100644 --- a/boards/arm/stm32/b-g431b-esc1/include/board.h +++ b/boards/arm/stm32/b-g431b-esc1/include/board.h @@ -122,7 +122,7 @@ #define STM32_RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_HCLK #define STM32_PCLK2_FREQUENCY STM32_HCLK_FREQUENCY -#endif /* CONFIG_BOARD_STM32_BG431BESC1_USE_HSI */ +#endif /* CONFIG_BOARD_STM32_BG431BESC1_USE_HSI */ #ifdef CONFIG_BOARD_STM32_BG431BESC1_USE_HSE @@ -206,7 +206,7 @@ #define STM32_RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_HCLK #define STM32_PCLK2_FREQUENCY STM32_HCLK_FREQUENCY -#endif /* CONFIG_BOARD_STM32_BG431BESC1_USE_HSE */ +#endif /* CONFIG_BOARD_STM32_BG431BESC1_USE_HSE */ /* APB2 timers 1, 8, 20 and 15-17 will receive PCLK2. */ diff --git a/boards/arm/stm32/nucleo-f103rb/include/board.h b/boards/arm/stm32/nucleo-f103rb/include/board.h index fb790f619a..91953bb6be 100644 --- a/boards/arm/stm32/nucleo-f103rb/include/board.h +++ b/boards/arm/stm32/nucleo-f103rb/include/board.h @@ -207,6 +207,6 @@ # define GPIO_FOC_DEBUG3 (GPIO_OUTPUT|GPIO_CNF_OUTPP|GPIO_MODE_50MHz| \ GPIO_OUTPUT_CLEAR|GPIO_PORTC|GPIO_PIN5) -#endif /* CONFIG_BOARD_STM32_IHM07M1 */ +#endif /* CONFIG_BOARD_STM32_IHM07M1 */ #endif /* __BOARDS_ARM_STM32_NUCLEO_F103RB_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-g431kb/src/stm32_dac.c b/boards/arm/stm32/nucleo-g431kb/src/stm32_dac.c index 1040a8b7d3..bf7c23012e 100644 --- a/boards/arm/stm32/nucleo-g431kb/src/stm32_dac.c +++ b/boards/arm/stm32/nucleo-g431kb/src/stm32_dac.c @@ -109,4 +109,4 @@ int stm32_dac_setup(void) return OK; } -#endif /* CONFIG_DAC */ +#endif /* CONFIG_DAC */ diff --git a/boards/arm/stm32/nucleo-g431rb/include/board.h b/boards/arm/stm32/nucleo-g431rb/include/board.h index a4580b7458..1ee50d319b 100644 --- a/boards/arm/stm32/nucleo-g431rb/include/board.h +++ b/boards/arm/stm32/nucleo-g431rb/include/board.h @@ -122,7 +122,7 @@ #define STM32_RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_HCLK #define STM32_PCLK2_FREQUENCY STM32_HCLK_FREQUENCY -#endif /* CONFIG_BOARD_NUCLEO_G431RB_USE_HSI */ +#endif /* CONFIG_BOARD_NUCLEO_G431RB_USE_HSI */ #ifdef CONFIG_BOARD_NUCLEO_G431RB_USE_HSE @@ -206,7 +206,7 @@ #define STM32_RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_HCLK #define STM32_PCLK2_FREQUENCY STM32_HCLK_FREQUENCY -#endif /* CONFIG_BOARD_NUCLEO_G431RB_USE_HSE */ +#endif /* CONFIG_BOARD_NUCLEO_G431RB_USE_HSE */ /* APB2 timers 1, 8, 20 and 15-17 will receive PCLK2. */ @@ -392,6 +392,6 @@ # define GPIO_FOC_DEBUG3 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz| \ GPIO_OUTPUT_CLEAR|GPIO_PORTA|GPIO_PIN12) -#endif /* CONFIG_BOARD_STM32_IHM16M1 */ +#endif /* CONFIG_BOARD_STM32_IHM16M1 */ #endif /* __BOARDS_ARM_STM32_NUCLEO_G431RB_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h b/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h index 51fecd3c68..fe6cdb7b93 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h +++ b/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h @@ -388,7 +388,7 @@ int stm32_pwm_setup(void); #ifdef HAVE_PROGMEM_CHARDEV int stm32_progmem_init(void); -#endif /* HAVE_PROGMEM_CHARDEV */ +#endif /* HAVE_PROGMEM_CHARDEV */ #endif /**************************************************************************** diff --git a/boards/xtensa/esp32/esp32-audio-kit/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-audio-kit/src/esp32_bringup.c index d876870d83..e6503456e6 100644 --- a/boards/xtensa/esp32/esp32-audio-kit/src/esp32_bringup.c +++ b/boards/xtensa/esp32/esp32-audio-kit/src/esp32_bringup.c @@ -368,7 +368,7 @@ int esp32_bringup(void) } #endif /* CONFIG_AUDIO_ES8388 */ -#endif /* CONFIG_ESP32_I2S0 */ +#endif /* CONFIG_ESP32_I2S0 */ #ifdef CONFIG_ESP32_I2S1 @@ -381,7 +381,7 @@ int esp32_bringup(void) CONFIG_ESP32_I2S0, ret); } -#endif /* CONFIG_ESP32_I2S1 */ +#endif /* CONFIG_ESP32_I2S1 */ #endif /* CONFIG_ESP32_I2S */ diff --git a/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c index cf023e0b59..dd384b163e 100644 --- a/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c +++ b/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c @@ -550,7 +550,7 @@ int esp32_bringup(void) #endif /* CONFIG_AUDIO_CS4344 */ -#endif /* CONFIG_ESP32_I2S0 */ +#endif /* CONFIG_ESP32_I2S0 */ #ifdef CONFIG_ESP32_I2S1 @@ -575,7 +575,7 @@ int esp32_bringup(void) CONFIG_ESP32_I2S1, ret); } -#endif /* CONFIG_ESP32_I2S1 */ +#endif /* CONFIG_ESP32_I2S1 */ #endif /* CONFIG_ESP32_I2S */ diff --git a/boards/xtensa/esp32/esp32-lyrat/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-lyrat/src/esp32_bringup.c index eeb39598fa..44a995ff7f 100644 --- a/boards/xtensa/esp32/esp32-lyrat/src/esp32_bringup.c +++ b/boards/xtensa/esp32/esp32-lyrat/src/esp32_bringup.c @@ -368,7 +368,7 @@ int esp32_bringup(void) } #endif /* CONFIG_AUDIO_ES8388 */ -#endif /* CONFIG_ESP32_I2S0 */ +#endif /* CONFIG_ESP32_I2S0 */ #ifdef CONFIG_ESP32_I2S1 @@ -381,7 +381,7 @@ int esp32_bringup(void) CONFIG_ESP32_I2S0, ret); } -#endif /* CONFIG_ESP32_I2S1 */ +#endif /* CONFIG_ESP32_I2S1 */ #endif /* CONFIG_ESP32_I2S */ diff --git a/boards/xtensa/esp32/esp32-pico-kit/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-pico-kit/src/esp32_bringup.c index 95974cdf28..9008c56829 100644 --- a/boards/xtensa/esp32/esp32-pico-kit/src/esp32_bringup.c +++ b/boards/xtensa/esp32/esp32-pico-kit/src/esp32_bringup.c @@ -388,7 +388,7 @@ int esp32_bringup(void) CONFIG_ESP32_I2S0, ret); } -#endif /* CONFIG_ESP32_I2S0 */ +#endif /* CONFIG_ESP32_I2S0 */ #ifdef CONFIG_ESP32_I2S1 @@ -413,7 +413,7 @@ int esp32_bringup(void) CONFIG_ESP32_I2S1, ret); } -#endif /* CONFIG_ESP32_I2S1 */ +#endif /* CONFIG_ESP32_I2S1 */ #endif /* CONFIG_ESP32_I2S */ diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c b/boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c index 51e8c8442c..fca474d130 100644 --- a/boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c +++ b/boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c @@ -316,7 +316,7 @@ int esp32s3_bringup(void) CONFIG_ESP32S3_I2S1, ret); } -#endif /* CONFIG_ESP32S3_I2S1 */ +#endif /* CONFIG_ESP32S3_I2S1 */ #endif /* CONFIG_ESP32S3_I2S */ diff --git a/drivers/audio/wm8994.h b/drivers/audio/wm8994.h index e59e20cb49..561a9e3143 100644 --- a/drivers/audio/wm8994.h +++ b/drivers/audio/wm8994.h @@ -1610,9 +1610,9 @@ struct wm8994_dev_s #ifndef CONFIG_AUDIO_EXCLUDE_VOLUME #ifndef CONFIG_AUDIO_EXCLUDE_BALANCE uint16_t balance; /* Current balance level (b16) */ -#endif /* CONFIG_AUDIO_EXCLUDE_BALANCE */ +#endif /* CONFIG_AUDIO_EXCLUDE_BALANCE */ uint8_t volume; /* Current volume level {0..63} */ -#endif /* CONFIG_AUDIO_EXCLUDE_VOLUME */ +#endif /* CONFIG_AUDIO_EXCLUDE_VOLUME */ uint8_t nchannels; /* Number of channels (1 or 2) */ uint8_t bpsamp; /* Bits per sample (8 or 16) */ volatile uint8_t inflight; /* Number of audio buffers in-flight */ diff --git a/drivers/modem/alt1250/alt1250.h b/drivers/modem/alt1250/alt1250.h index 5f46bf4956..10b962f904 100644 --- a/drivers/modem/alt1250/alt1250.h +++ b/drivers/modem/alt1250/alt1250.h @@ -56,4 +56,4 @@ uint64_t get_event_lapibuffer(FAR struct alt1250_dev_s *dev, uint32_t lapicmdid, alt_evtbuf_inst_t **inst); -#endif /* __DRIVERS_MODEM_ALT1250_ALT1250_H */ +#endif /* __DRIVERS_MODEM_ALT1250_ALT1250_H */ diff --git a/sched/sched/sched_get_stackinfo.c b/sched/sched/sched_get_stackinfo.c index 4dde84ab2a..01c7ef5c36 100644 --- a/sched/sched/sched_get_stackinfo.c +++ b/sched/sched/sched_get_stackinfo.c @@ -61,7 +61,7 @@ int nxsched_get_stackinfo(pid_t pid, FAR struct stackinfo_s *stackinfo) DEBUGASSERT(rtcb != NULL && stackinfo != NULL); - /* Pid of 0 means that we are querying ourself */ + /* Pid of 0 means that we are querying ourself */ if (pid == 0) { diff --git a/sched/task/task_exit.c b/sched/task/task_exit.c index e7ea92a876..02a5c83064 100644 --- a/sched/task/task_exit.c +++ b/sched/task/task_exit.c @@ -22,11 +22,11 @@ * Included Files ****************************************************************************/ -#include +#include -#include +#include -#include "sched/sched.h" +#include "sched/sched.h" #ifdef CONFIG_SMP # include "irq/irq.h" diff --git a/tools/kconfig2html.c b/tools/kconfig2html.c index f815bade0e..422f292c1c 100644 --- a/tools/kconfig2html.c +++ b/tools/kconfig2html.c @@ -196,7 +196,8 @@ static int g_menu_number; static int g_choice_number; static int g_toggle_number; -static const char g_delimiters[] = " ,"; +static const char g_delimiters[] = +" ,"; static struct reserved_s g_reserved[] = { @@ -225,7 +226,7 @@ static struct reserved_s g_reserved[] = {TOKEN_SOURCE, "source"}, {TOKEN_IF, "if"}, {TOKEN_ENDIF, "endif"}, - {TOKEN_NOTRESERVED, NULL} /* Terminates list */ + {TOKEN_NOTRESERVED, NULL} }; /**************************************************************************** @@ -898,7 +899,7 @@ static char *get_token(void) if (*pbegin == '"') { - /* Search for the trailing quotation mark */ + /* Search for the trailing quotation mark */ pend = findchar(pbegin + 1, '"'); @@ -1869,7 +1870,8 @@ static inline char *process_config(FILE *stream, const char *varname, if (config.c_select.s_nvar > 0) { - outfunc("
  • Selects: CONFIG_%s", + outfunc("
  • Selects: " + "CONFIG_%s", config.c_select.s_varname[0], config.c_select.s_varname[0]); for (i = 1; i < config.c_select.s_nvar; i++) @@ -2168,14 +2170,16 @@ static inline char *process_menu(FILE *stream, const char *kconfigdir, paranum = get_paranum(); if (menu.m_name) { - output("
  • %s Menu: %s
  • \n", + output("
  • " + "%s Menu: %s
  • \n", g_menu_number, g_menu_number, paranum, menu.m_name); body("\n

    %s Menu: %s

    \n", g_menu_number, paranum, menu.m_name); } else { - output("
  • %s Menu
  • \n", + output("
  • " + "%s Menu
  • \n", g_menu_number, g_menu_number, paranum); body("\n

    %s Menu

    \n", g_menu_number, paranum); @@ -2186,10 +2190,13 @@ static inline char *process_menu(FILE *stream, const char *kconfigdir, */ #ifdef USE_JQUERY - output("Expand\n", + output("" + "Expand\n", g_menu_number, g_toggle_number, g_toggle_number); #else - output("Expand\n", + output("" + "Expand\n", g_menu_number, g_toggle_number); #endif output("
      \n", @@ -2293,17 +2300,20 @@ static char *parse_kconfigfile(FILE *stream, const char *kconfigdir, *appsdir = '\0'; asprintf(&dirpath, "%s/%s%s%s", - g_kconfigroot, subdir, g_appsdir, tmp); + g_kconfigroot, subdir, + g_appsdir, tmp); } else { - asprintf(&dirpath, "%s/%s", g_kconfigroot, subdir); + asprintf(&dirpath, "%s/%s", + g_kconfigroot, subdir); } } configname = strdup(configname); - debug("parse_kconfigfile: Recursing for TOKEN_SOURCE\n"); + debug("parse_kconfigfile: " + "Recursing for TOKEN_SOURCE\n"); debug(" source: %s\n", source); debug(" subdir: %s\n", subdir); debug(" dirpath: %s\n", dirpath); @@ -2317,8 +2327,8 @@ static char *parse_kconfigfile(FILE *stream, const char *kconfigdir, free(configname); } - /* Set the token string to NULL to indicate that we need to read - * the next line + /* Set the token string to NULL to indicate that + * we need to read the next line */ token = NULL; @@ -2371,8 +2381,8 @@ static char *parse_kconfigfile(FILE *stream, const char *kconfigdir, case TOKEN_ENDMENU: { /* Reduce table of contents indentation level. NOTE that - * this also terminates the toggle block that began with the - * matching
        + * this also terminates the toggle block that + * began with the matching
          */ output("
        \n"); @@ -2588,14 +2598,16 @@ int main(int argc, char **argv, char **envp) output("\n"); output("\n"); output("\n"); output("\n"); output("
        \n"); - output("

        NuttX Configuration Variables

        \n"); + output("

        " + "NuttX Configuration Variables

        \n"); output("

        Last Updated: %s

        \n", g_scratch); output("
        \n"); #ifdef USE_JQUERY - output("\n"); + output("\n"); output("