浏览代码

[components][drivers] format file

tangyuxin 3 年之前
父节点
当前提交
a77cc81876

+ 1 - 1
components/drivers/include/drivers/serial_v2.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 2 - 2
components/drivers/sensors/sensor.c

@@ -311,7 +311,7 @@ static rt_size_t rt_sensor_read(rt_device_t dev, rt_off_t pos, void *buf, rt_siz
         if (sensor->ops->fetch_data !=  RT_NULL)
         {
             result = sensor->ops->fetch_data(sensor, buf, len);
-        }        
+        }
     }
 
     if (sensor->module)
@@ -359,7 +359,7 @@ static rt_err_t rt_sensor_control(rt_device_t dev, int cmd, void *args)
         {
             sensor->config.range = (rt_int32_t)args;
             LOG_D("set range %d", sensor->config.range);
-        }    
+        }
         break;
     case RT_SENSOR_CTRL_SET_ODR:
         /* Configuration data output rate */

+ 1 - 1
components/drivers/serial/serial_v2.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
components/drivers/usb/usbdevice/class/hid.c

@@ -323,7 +323,7 @@ const static struct uhid_comm_descriptor _hid_comm_desc =
 #else
         0,
 #endif
-	},
+    },
 
     /* HID Descriptor */
     {