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

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

commit 6e7350d8c34838e36633ec8f7485f6236c377da6
Author: Marco Casaroli <[email protected]>
AuthorDate: Thu Oct 8 11:29:40 2026 +0200

    drivers/power: Fix nxstyle errors in battery_gauge.c.
    
    Whitespace only.  Add a blank line after the declarations in the BATIOC_*
    cases, and indent two case labels like the others.  The errors are older
    than the next commit, but checkpatch checks the whole file.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 drivers/power/battery/battery_gauge.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/drivers/power/battery/battery_gauge.c 
b/drivers/power/battery/battery_gauge.c
index 86c684e7448..101cca01c66 100644
--- a/drivers/power/battery/battery_gauge.c
+++ b/drivers/power/battery/battery_gauge.c
@@ -312,6 +312,7 @@ static int bat_gauge_ioctl(FAR struct file *filep,
       case BATIOC_STATE:
         {
           FAR int *ptr = (FAR int *)((uintptr_t)arg);
+
           if (ptr)
             {
               ret = dev->ops->state(dev, ptr);
@@ -322,6 +323,7 @@ static int bat_gauge_ioctl(FAR struct file *filep,
       case BATIOC_ONLINE:
         {
           FAR bool *ptr = (FAR bool *)((uintptr_t)arg);
+
           if (ptr)
             {
               ret = dev->ops->online(dev, ptr);
@@ -332,6 +334,7 @@ static int bat_gauge_ioctl(FAR struct file *filep,
       case BATIOC_VOLTAGE:
         {
           FAR int *ptr = (FAR int *)((uintptr_t)arg);
+
           if (ptr)
             {
               ret = dev->ops->voltage(dev, ptr);
@@ -342,6 +345,7 @@ static int bat_gauge_ioctl(FAR struct file *filep,
       case BATIOC_CAPACITY:
         {
           FAR int *ptr = (FAR int *)((uintptr_t)arg);
+
           if (ptr)
             {
               ret = dev->ops->capacity(dev, ptr);
@@ -349,9 +353,10 @@ static int bat_gauge_ioctl(FAR struct file *filep,
         }
         break;
 
-        case BATIOC_CURRENT:
+      case BATIOC_CURRENT:
         {
           FAR int *ptr = (FAR int *)((uintptr_t)arg);
+
           if (ptr)
             {
               ret = dev->ops->current(dev, ptr);
@@ -359,9 +364,10 @@ static int bat_gauge_ioctl(FAR struct file *filep,
         }
         break;
 
-        case BATIOC_TEMPERATURE:
+      case BATIOC_TEMPERATURE:
         {
           FAR int *ptr = (FAR int *)((uintptr_t)arg);
+
           if (ptr)
             {
               ret = dev->ops->temp(dev, ptr);
@@ -372,6 +378,7 @@ static int bat_gauge_ioctl(FAR struct file *filep,
       case BATIOC_CHIPID:
         {
           FAR unsigned int *ptr = (FAR unsigned int *)((uintptr_t)arg);
+
           if (ptr)
             {
               ret = dev->ops->chipid(dev, ptr);
@@ -382,6 +389,7 @@ static int bat_gauge_ioctl(FAR struct file *filep,
       case BATIOC_OPERATE:
         {
           FAR int *ptr = (FAR int *)((uintptr_t)arg);
+
           if (ptr)
             {
               ret = dev->ops->operate(dev, ptr);

Reply via email to