From 53387b53c6fd4da860cb15b83569b2b8579dd515 Mon Sep 17 00:00:00 2001 From: Matias Nitsche Date: Mon, 15 Jun 2020 18:45:34 -0300 Subject: [PATCH] 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 fb0ea491a1..beca4f6b48 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 7c74987e02..2d23020607 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 #if defined(CONFIG_I2C) && (defined(CONFIG_SENSORS_BMP280) || defined(CONFIG_SENSORS_BMP280_SCU))