This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new ccc0c54401 Fix Kconfig style
ccc0c54401 is described below

commit ccc0c54401b3060388b4900f1b4d766519df4cc1
Author: simbit18 <[email protected]>
AuthorDate: Mon Dec 4 12:49:55 2023 +0100

    Fix Kconfig style
    
    Remove extra TABs
    Remove spaces from Kconfig
    Add comments
---
 arch/arm/src/at32/Kconfig         |  9 ++++-----
 arch/arm/src/rp2040/Kconfig       |  2 +-
 arch/xtensa/src/esp32s3/Kconfig   |  5 +++--
 boards/arm/stm32/odrive36/Kconfig |  4 ++--
 drivers/sensors/Kconfig           | 30 ++++++++++++++++--------------
 5 files changed, 26 insertions(+), 24 deletions(-)

diff --git a/arch/arm/src/at32/Kconfig b/arch/arm/src/at32/Kconfig
index 2ad9180f8f..296fa06380 100644
--- a/arch/arm/src/at32/Kconfig
+++ b/arch/arm/src/at32/Kconfig
@@ -217,7 +217,6 @@ menu "AT32 Peripheral Support"
 # These "hidden" settings determine whether a peripheral option is available
 # for the selected MCU
 
-
 config AT32_HAVE_OVERDRIVE
        bool
        default n
@@ -649,7 +648,7 @@ config AT32_DAC1CH2
        bool "DAC1CH2"
        default n
 
-endif #AT32_DAC1
+endif # AT32_DAC1
 
 config AT32_DAC2
        bool "DAC2"
@@ -663,7 +662,7 @@ config AT32_DAC2CH1
        bool "DAC2CH1"
        default n
 
-endif #AT32_DAC2
+endif # AT32_DAC2
 
 config AT32_DAC3
        bool "DAC3"
@@ -681,7 +680,7 @@ config AT32_DAC3CH2
        bool "DAC3CH2 Internal"
        default n
 
-endif #AT32_DAC3
+endif # AT32_DAC3
 
 config AT32_DAC4
        bool "DAC4"
@@ -699,7 +698,7 @@ config AT32_DAC4CH2
        bool "DAC4CH2 Internal"
        default n
 
-endif #AT32_DAC4
+endif # AT32_DAC4
 
 config AT32_DCMI
        bool "DCMI"
diff --git a/arch/arm/src/rp2040/Kconfig b/arch/arm/src/rp2040/Kconfig
index d302f789e5..751f0c806c 100644
--- a/arch/arm/src/rp2040/Kconfig
+++ b/arch/arm/src/rp2040/Kconfig
@@ -247,7 +247,7 @@ config RP2040_I2C1_SLAVE_10BIT
        ---help---
                Set to enable 10-bit mode addressing.
 
-       endif # RP2040_I2C1_SLAVE
+endif # RP2040_I2C1_SLAVE
 
 endif # RP2040_I2C_SLAVE
 
diff --git a/arch/xtensa/src/esp32s3/Kconfig b/arch/xtensa/src/esp32s3/Kconfig
index a4a6f20605..f81ca3d298 100644
--- a/arch/xtensa/src/esp32s3/Kconfig
+++ b/arch/xtensa/src/esp32s3/Kconfig
@@ -1584,7 +1584,7 @@ config ESP32S3_PHY_INIT_DATA_ERROR
 
 endif
 
-endmenu  # PHY
+endmenu # PHY
 
 menu "Timer/Counter Configuration"
        depends on ESP32S3_TIMER
@@ -1743,7 +1743,8 @@ config ESP32S3_FLASH_SAMPLE_MODE_DTR
        bool "DTR Mode"
 config ESP32S3_FLASH_SAMPLE_MODE_STR
        bool "STR Mode"
-endchoice
+
+endchoice # ESP32S3_FLASH_SAMPLE_MODE
 
 config ESP32S3_SPI_FLASH_DONT_USE_ROM_CODE
        bool "Don't use SPI flash driver in ROM"
diff --git a/boards/arm/stm32/odrive36/Kconfig 
b/boards/arm/stm32/odrive36/Kconfig
index 42bd303046..7bbf8f2d44 100644
--- a/boards/arm/stm32/odrive36/Kconfig
+++ b/boards/arm/stm32/odrive36/Kconfig
@@ -6,8 +6,8 @@
 if ARCH_BOARD_ODRIVE36
 
 choice
-       prompt "ODrive voltage version"
-       default ODRIVE_HW_VOLTAGE_56
+       prompt "ODrive voltage version"
+       default ODRIVE_HW_VOLTAGE_56
 
 config ODRIVE_HW_VOLTAGE_56
        bool "ODrive 56V version"
diff --git a/drivers/sensors/Kconfig b/drivers/sensors/Kconfig
index d32c210a75..fff31a553c 100644
--- a/drivers/sensors/Kconfig
+++ b/drivers/sensors/Kconfig
@@ -174,8 +174,8 @@ config SENSORS_BMI160_UORB
        bool "BMI160 UORB Interface"
        default n
        ---help---
-       Enables Work with the UORB or Character Device interface.
-       If not set, the Character Device is used by default.
+               Enables Work with the UORB or Character Device interface.
+               If not set, the Character Device is used by default.
 
 choice
        prompt "BMI160 Interface"
@@ -193,7 +193,7 @@ config SENSORS_BMI160_SPI
        ---help---
                Enables support for the SPI interface
 
-endchoice
+endchoice # BMI160 Interface
 
 choice
        prompt "I2C Address"
@@ -210,8 +210,9 @@ config BMI160_I2C_ADDR_69
        ---help---
                If SDO pin is pulled to VDDIO, use 0x69
 
-endchoice
-endif
+endchoice # I2C Address
+
+endif # SENSORS_BMI160
 
 config SENSORS_BMI270
        bool "Bosch BMI270 Inertial Measurement Sensor support"
@@ -238,7 +239,7 @@ config SENSORS_BMI270_SPI
        ---help---
                Enables support for the SPI interface
 
-endchoice
+endchoice # BMI270 Interface
 
 config SENSORS_BMI270_LOAD_FROM_HEAP
        bool "BMI270 config loading from heap memory"
@@ -248,7 +249,7 @@ config SENSORS_BMI270_LOAD_FROM_HEAP
                Some chips can not do DMA transfer from FLASH and therefore
                it is necessary to transfer the configuration file to RAM.
 
-endif
+endif # SENSORS_BMI270
 
 config SENSORS_BMP180
        bool "Bosch BMP180 Barometer Sensor support"
@@ -338,7 +339,6 @@ config SENSORS_BME680_THREAD_STACKSIZE
        ---help---
                The stack size for the worker thread.
 
-
 config SENSORS_DHTXX
        bool "DHTxx humidity/temperature Sensor support"
        default n
@@ -722,7 +722,8 @@ config MLX90614_CRC
        ---help---
                Enable checking of CRC-8 (PEC field) checking to guarantee that
                read data is valid.
-endif
+
+endif # SENSORS_MLX90614
 
 config SENSORS_MCP9844
        bool "MCP9844 Temperature Sensor"
@@ -741,7 +742,7 @@ config SENSORS_MS56XX
        bool "MS56XX Barometric Pressure Sensor support"
        default n
        ---help---
-               Enable driver support for MEAS MS5511 barometer.
+               Enable driver support for MS5611 Barometric Pressure Sensor.
 
 if SENSORS_MS56XX
 
@@ -761,7 +762,7 @@ config MS56XX_SPI
        ---help---
                Enables support for the SPI interface.
 
-endchoice
+endchoice # MS5611 Interface
 
 config MS56XX_THREAD_STACKSIZE
        int "Worker thread stack size"
@@ -833,7 +834,7 @@ config ADXL345_I2C
        ---help---
                Enables support for the I2C interface
 
-endchoice
+endchoice # ADXL345 Interface
 
 config ADXL345_ACTIVELOW
        bool "Active Low Interrupt"
@@ -884,7 +885,7 @@ config MPU60X0_I2C
                Enables support for the I2C interface (MPU6000
                or MPU6050, autodetected during driver initialization)
 
-endchoice
+endchoice # MPU60x0 Interface
 
 config MPU60X0_I2C_FREQ
        int "MPU60x0 I2C Frequency"
@@ -976,7 +977,7 @@ config MPU9250_I2C
        ---help---
                Enables support for the I2C interface
 
-endchoice
+endchoice # MPU9250 Interface
 
 config MPU9250_I2C_FREQ
        int "MPU9250 I2C Frequency"
@@ -1241,6 +1242,7 @@ config AHT10_I2C_FREQUENCY
        int "AHT10 I2C frequency"
        default 400000
        range 1 400000
+
 endif # SENSORS_AHT10
 
 config SENSORS_SHT21

Reply via email to