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

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

commit 53387b53c6fd4da860cb15b83569b2b8579dd515
Author: Matias Nitsche <[email protected]>
AuthorDate: Mon Jun 15 18:45:34 2020 -0300

    style fixes
---
 drivers/sensors/bmp280.c       | 11 ++++++-----
 include/nuttx/sensors/bmp280.h |  4 ++++
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/drivers/sensors/bmp280.c b/drivers/sensors/bmp280.c
index fb0ea49..beca4f6 100644
--- a/drivers/sensors/bmp280.c
+++ b/drivers/sensors/bmp280.c
@@ -163,7 +163,8 @@ struct bmp280_dev_s
  * Private Function Prototypes
  ****************************************************************************/
 
-static uint8_t bmp280_getreg8(FAR struct bmp280_dev_s *priv, uint8_t regaddr);
+static uint8_t bmp280_getreg8(FAR struct bmp280_dev_s *priv,
+                              uint8_t regaddr);
 static void bmp280_putreg8(FAR struct bmp280_dev_s *priv, uint8_t regaddr,
                            uint8_t regval);
 static uint32_t bmp280_getpressure(FAR struct bmp280_dev_s *priv);
@@ -568,9 +569,9 @@ static uint32_t bmp280_gettemp(FAR struct bmp280_dev_s 
*priv)
   sninfo("temp = %d\n", temp);
 
   if (priv->compensated == ENABLE_COMPENSATED)
-  {
-    temp = bmp280_compensate_temp(priv, temp);
-  }
+    {
+      temp = bmp280_compensate_temp(priv, temp);
+    }
 
   return temp;
 }
@@ -669,7 +670,7 @@ static int bmp280_ioctl(FAR struct file *filep, int cmd, 
unsigned long arg)
         break;
 
       case SNIOC_GET_TEMP:
-        *(uint32_t*)arg = bmp280_gettemp(priv);
+        *(uint32_t *)arg = bmp280_gettemp(priv);
 
       default:
         snerr("Unrecognized cmd: %d\n", cmd);
diff --git a/include/nuttx/sensors/bmp280.h b/include/nuttx/sensors/bmp280.h
index 7c74987..2d23020 100644
--- a/include/nuttx/sensors/bmp280.h
+++ b/include/nuttx/sensors/bmp280.h
@@ -36,6 +36,10 @@
 #ifndef __INCLUDE_NUTTX_SENSORS_BMP280_H
 #define __INCLUDE_NUTTX_SENSORS_BMP280_H
 
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
+
 #include <nuttx/config.h>
 
 #if defined(CONFIG_I2C) && (defined(CONFIG_SENSORS_BMP280) || 
defined(CONFIG_SENSORS_BMP280_SCU))

Reply via email to