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 1e6e9c41132c8661802642f3ed8ff1ab45dcbbdd
Author: raiden00pl <[email protected]>
AuthorDate: Tue Nov 24 17:25:25 2026 +0100

    arch/arm/stm32: Fix style errors in the FDCAN drivers.
    
    Add the missing blank lines after declarations in the SocketCAN drivers
    and remove a stray "s" from the H5 driver license header.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 arch/arm/src/common/stm32/stm32_fdcan_m0_v1_sock.c   | 2 ++
 arch/arm/src/common/stm32/stm32_fdcan_m3m4_v1_sock.c | 2 ++
 arch/arm/src/stm32h5/stm32_fdcan.c                   | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/src/common/stm32/stm32_fdcan_m0_v1_sock.c 
b/arch/arm/src/common/stm32/stm32_fdcan_m0_v1_sock.c
index d118271cf97..f706ff08604 100644
--- a/arch/arm/src/common/stm32/stm32_fdcan_m0_v1_sock.c
+++ b/arch/arm/src/common/stm32/stm32_fdcan_m0_v1_sock.c
@@ -634,6 +634,7 @@ static uint32_t fdcan_getreg(struct stm32_fdcan_s *priv, 
int offset)
 static uint32_t fdcan_getreg(struct stm32_fdcan_s *priv, int offset)
 {
   const struct stm32_config_s *config = priv->config;
+
   return getreg32(config->base + offset);
 }
 
@@ -676,6 +677,7 @@ static void fdcan_putreg(struct stm32_fdcan_s *priv, int 
offset,
                          uint32_t regval)
 {
   const struct stm32_config_s *config = priv->config;
+
   putreg32(regval, config->base + offset);
 }
 
diff --git a/arch/arm/src/common/stm32/stm32_fdcan_m3m4_v1_sock.c 
b/arch/arm/src/common/stm32/stm32_fdcan_m3m4_v1_sock.c
index 55d16f42349..c77bed03588 100644
--- a/arch/arm/src/common/stm32/stm32_fdcan_m3m4_v1_sock.c
+++ b/arch/arm/src/common/stm32/stm32_fdcan_m3m4_v1_sock.c
@@ -938,6 +938,7 @@ static uint32_t fdcan_getreg(struct stm32_fdcan_s *priv, 
int offset)
 static uint32_t fdcan_getreg(struct stm32_fdcan_s *priv, int offset)
 {
   const struct stm32_config_s *config = priv->config;
+
   return getreg32(config->base + offset);
 }
 
@@ -980,6 +981,7 @@ static void fdcan_putreg(struct stm32_fdcan_s *priv, int 
offset,
                          uint32_t regval)
 {
   const struct stm32_config_s *config = priv->config;
+
   putreg32(regval, config->base + offset);
 }
 
diff --git a/arch/arm/src/stm32h5/stm32_fdcan.c 
b/arch/arm/src/stm32h5/stm32_fdcan.c
index ca0a3e89bd6..5f014b62789 100644
--- a/arch/arm/src/stm32h5/stm32_fdcan.c
+++ b/arch/arm/src/stm32h5/stm32_fdcan.c
@@ -11,7 +11,7 @@
  * License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
- *s
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the

Reply via email to