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

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

commit 4009d425c1535218b53acbf8bf27d703cb27bbe6
Author: Marco Casaroli <[email protected]>
AuthorDate: Tue Oct 27 11:18:10 2026 +0100

    include, arch, drivers: Fix the old nxstyle errors of seven files.
    
    The next commits change these files, and checkpatch checks whole files.
    Fix the errors that they already had: one member per line in
    lcd/lcd_dev.h, the spelling of "deceleration" in motor/motor.h and of
    "MONOTONIC" in kinetis_rtc_if.h, the brace of the extern "C" block in
    both nrf24l01.h and in cyw_reg_def.h, and the closing brace of a switch
    in gd32f4xx_exti.c.  No change of the code.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 arch/arm/src/gd32f4/gd32f4xx_exti.c               | 2 +-
 arch/arm/src/kinetis/kinetis_rtc_if.h             | 2 +-
 drivers/wireless/ieee80211/bcm43xxx/cyw_reg_def.h | 2 +-
 drivers/wireless/nrf24l01.h                       | 2 +-
 include/nuttx/lcd/lcd_dev.h                       | 9 ++++++---
 include/nuttx/motor/motor.h                       | 2 +-
 include/nuttx/wireless/nrf24l01.h                 | 2 +-
 7 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/arch/arm/src/gd32f4/gd32f4xx_exti.c 
b/arch/arm/src/gd32f4/gd32f4xx_exti.c
index 3fa097d3d74..2a4ddb95bb2 100644
--- a/arch/arm/src/gd32f4/gd32f4xx_exti.c
+++ b/arch/arm/src/gd32f4/gd32f4xx_exti.c
@@ -389,7 +389,7 @@ void gd32_exti_init(uint32_t linex, uint8_t exti_mode, 
uint8_t trig_type)
         break;
       default:
         break;
-  }
+    }
 
   /* set the EXTI trigger type */
 
diff --git a/arch/arm/src/kinetis/kinetis_rtc_if.h 
b/arch/arm/src/kinetis/kinetis_rtc_if.h
index 0cab498a360..2f9b1b979ff 100644
--- a/arch/arm/src/kinetis/kinetis_rtc_if.h
+++ b/arch/arm/src/kinetis/kinetis_rtc_if.h
@@ -34,7 +34,7 @@
 /* Kinetis parts all have a simple battery-backed 32bit counter for its RTC
  * KINETIS_RTC_GEN2 have
  *    a Tamper Time seconds - 32bibt
- *    a MONOTONC seconds  which is used is 2*32bit registers
+ *    a MONOTONIC seconds  which is used is 2*32bit registers
  *
  */
 
diff --git a/drivers/wireless/ieee80211/bcm43xxx/cyw_reg_def.h 
b/drivers/wireless/ieee80211/bcm43xxx/cyw_reg_def.h
index 4ec8fcb2d63..b4b0554c189 100644
--- a/drivers/wireless/ieee80211/bcm43xxx/cyw_reg_def.h
+++ b/drivers/wireless/ieee80211/bcm43xxx/cyw_reg_def.h
@@ -150,7 +150,7 @@
 #if defined(__cplusplus)
 #  define EXTERN extern "C"
 extern "C"
-  {
+{
 #else
 #  define EXTERN extern
 #endif
diff --git a/drivers/wireless/nrf24l01.h b/drivers/wireless/nrf24l01.h
index bdaa5489152..0a8858be43b 100644
--- a/drivers/wireless/nrf24l01.h
+++ b/drivers/wireless/nrf24l01.h
@@ -152,7 +152,7 @@
 #if defined(__cplusplus)
 #  define EXTERN extern "C"
 extern "C"
-  {
+{
 #else
 #  define EXTERN extern
 #endif
diff --git a/include/nuttx/lcd/lcd_dev.h b/include/nuttx/lcd/lcd_dev.h
index 91f455b2905..581cf505af0 100644
--- a/include/nuttx/lcd/lcd_dev.h
+++ b/include/nuttx/lcd/lcd_dev.h
@@ -80,15 +80,18 @@ extern "C"
 
 struct lcddev_run_s
 {
-  fb_coord_t row, col;
+  fb_coord_t row;
+  fb_coord_t col;
   FAR uint8_t *data;
   size_t npixels;
 };
 
 struct lcddev_area_s
 {
-  fb_coord_t row_start, row_end;
-  fb_coord_t col_start, col_end;
+  fb_coord_t row_start;
+  fb_coord_t row_end;
+  fb_coord_t col_start;
+  fb_coord_t col_end;
   fb_coord_t stride;               /* row stride in bytes */
   FAR uint8_t *data;
 };
diff --git a/include/nuttx/motor/motor.h b/include/nuttx/motor/motor.h
index 4b91a1c0752..9aa95b4fea7 100644
--- a/include/nuttx/motor/motor.h
+++ b/include/nuttx/motor/motor.h
@@ -163,7 +163,7 @@ struct motor_limits_s
   float acceleration;                /* Maximum motor acceleration */
 #endif
 #ifdef CONFIG_MOTOR_UPPER_HAVE_DECELERATION
-  float deceleration;                /* Maximum motor decelaration */
+  float deceleration;                /* Maximum motor deceleration */
 #endif
 #ifdef CONFIG_MOTOR_UPPER_HAVE_INPUT_VOLTAGE
   float v_in;                        /* Maximum input voltage */
diff --git a/include/nuttx/wireless/nrf24l01.h 
b/include/nuttx/wireless/nrf24l01.h
index 19f87355c2f..ab475e5c5d0 100644
--- a/include/nuttx/wireless/nrf24l01.h
+++ b/include/nuttx/wireless/nrf24l01.h
@@ -114,7 +114,7 @@
 #if defined(__cplusplus)
 #  define EXTERN extern "C"
 extern "C"
-  {
+{
 #else
 #  define EXTERN extern
 #endif

Reply via email to