drivers/sensors: Fix remaining naming of configurations to be compliant for two more drivers.

This commit is contained in:
Gregory Nutt
2017-08-24 10:48:20 -06:00
parent dc8f3778a9
commit 5129aeefd5
23 changed files with 73 additions and 60 deletions
+1 -1
View File
@@ -102,4 +102,4 @@ int stm32_bmp180initialize(FAR const char *devpath)
return ret; return ret;
} }
#endif /* CONFIG_I2C && CONFIG_MPL115A && CONFIG_STM32_I2C1 */ #endif /* CONFIG_I2C && CONFIG_SENSORS_MPL115A && CONFIG_STM32_I2C1 */
+1 -1
View File
@@ -417,7 +417,7 @@ Freescale MPL115A barometer sensor
Drivers -> Sensors Drivers -> Sensors
CONFIG_SENSORS=y CONFIG_SENSORS=y
CONFIG_MPL115A=y CONFIG_SENSORS_MPL115A=y
CONFIG_NSH_ARCHINIT=y CONFIG_NSH_ARCHINIT=y
+1 -1
View File
@@ -54,7 +54,7 @@ CSRCS += stm32_usbdev.c
endif endif
endif endif
ifeq ($(CONFIG_MPL115A),y) ifeq ($(CONFIG_SENSORS_MPL115A),y)
CSRCS += stm32_mpl115a.c CSRCS += stm32_mpl115a.c
endif endif
@@ -174,7 +174,7 @@ int board_app_initialize(uintptr_t arg)
} }
#endif #endif
#ifdef CONFIG_MPL115A #ifdef CONFIG_SENSORS_MPL115A
ret = stm32_mpl115ainitialize("/dev/press"); ret = stm32_mpl115ainitialize("/dev/press");
if (ret < 0) if (ret < 0)
{ {
@@ -49,7 +49,7 @@
#include "stm32_spi.h" #include "stm32_spi.h"
#include "viewtool_stm32f107.h" #include "viewtool_stm32f107.h"
#if defined(CONFIG_SPI) && defined(CONFIG_MPL115A) && defined(CONFIG_STM32_SPI3) #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MPL115A) && defined(CONFIG_STM32_SPI3)
/************************************************************************************ /************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -98,4 +98,4 @@ int stm32_mpl115ainitialize(FAR const char *devpath)
return ret; return ret;
} }
#endif /* CONFIG_SPI && CONFIG_MPL115A && CONFIG_STM32_SPI3 */ #endif /* CONFIG_SPI && CONFIG_SENSORS_MPL115A && CONFIG_STM32_SPI3 */
+1 -1
View File
@@ -80,7 +80,7 @@ void weak_function stm32_spidev_initialize(void)
(void)stm32_configgpio(GPIO_LCDTP_CS); (void)stm32_configgpio(GPIO_LCDTP_CS);
#endif #endif
#if defined(CONFIG_STM32_SPI3) && defined(CONFIG_MPL115A) #if defined(CONFIG_STM32_SPI3) && defined(CONFIG_SENSORS_MPL115A)
/* Configure the MPL115A SPI3 CS pin as an output */ /* Configure the MPL115A SPI3 CS pin as an output */
(void)stm32_configgpio(GPIO_MPL115A_CS); (void)stm32_configgpio(GPIO_MPL115A_CS);
@@ -368,7 +368,7 @@ int stm32_can_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#if defined(CONFIG_SPI) && defined(CONFIG_MPL115A) && defined(CONFIG_STM32_SPI3) #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MPL115A) && defined(CONFIG_STM32_SPI3)
int stm32_mpl115ainitialize(FAR const char *devpath); int stm32_mpl115ainitialize(FAR const char *devpath);
#endif #endif
+28 -15
View File
@@ -159,7 +159,7 @@ config LIS331DL_I2C_FREQUENCY
range 1 100000 range 1 100000
depends on LIS331DL depends on LIS331DL
config SN_LSM9DS1 config SENSORS_LSM9DS1
bool "STMicro LSM9DS1 support" bool "STMicro LSM9DS1 support"
default n default n
select I2C select I2C
@@ -172,14 +172,14 @@ config LSM9DS1_I2C_FREQUENCY
range 1 400000 range 1 400000
depends on SN_LSM9DS1 depends on SN_LSM9DS1
config LPS25H config SENSORS_LPS25H
bool "STMicro LPS25H pressure sensor" bool "STMicro LPS25H pressure sensor"
default n default n
select I2C select I2C
---help--- ---help---
Enable driver support for the STMicro LPS25H barometer sensor. Enable driver support for the STMicro LPS25H barometer sensor.
if LPS25H if SENSORS_LPS25H
config LPS25H_I2C_FREQUENCY config LPS25H_I2C_FREQUENCY
int "LPS25H I2C frequency" int "LPS25H I2C frequency"
@@ -192,16 +192,21 @@ config DEBUG_LPS25H
---help--- ---help---
Enables debug features for the LPS25H Enables debug features for the LPS25H
endif # LPS25H endif # SENSORS_LPS25H
config LTC4151 config SENSORS_LTC4151
bool "LTC4151 current and voltage monitor" bool "LTC4151 current and voltage monitor"
default n default n
select I2C select I2C
---help--- ---help---
Enable driver support for the LinearTechnology LTC4151 current and voltage monitor. Enable driver support for the LinearTechnology LTC4151 current and voltage monitor.
config MB7040 config LTC4151_I2C_FREQUENCY
int "LTC4151 I2C frequency"
default 400000
depends on SENSORS_LTC4151
config SENSORS_MB7040
bool "MaxBotix MB7040 Sonar support" bool "MaxBotix MB7040 Sonar support"
default n default n
select I2C select I2C
@@ -212,16 +217,16 @@ config MB7040_I2C_FREQUENCY
int "MB7040 I2C frequency" int "MB7040 I2C frequency"
default 400000 default 400000
range 1 400000 range 1 400000
depends on MB7040 depends on SENSORS_MB7040
config MLX90393 config SENSORS_MLX90393
bool "MLX90393 3-Axis Magnetometer" bool "MLX90393 3-Axis Magnetometer"
default n default n
select SPI select SPI
---help--- ---help---
Enable driver support for the Melex MLX90393 3-Axis magnetometer. Enable driver support for the Melex MLX90393 3-Axis magnetometer.
config MCP9844 config SENSORS_MCP9844
bool "MCP9844 Temperature Sensor" bool "MCP9844 Temperature Sensor"
default n default n
select I2C select I2C
@@ -232,9 +237,9 @@ config MCP9844_I2C_FREQUENCY
int "MCP9844 I2C frequency" int "MCP9844 I2C frequency"
default 400000 default 400000
range 1 400000 range 1 400000
depends on MCP9844 depends on SENSORS_MCP9844
config MS58XX config SENSORS_MS58XX
bool "MEAS MS58XX Altimeter support" bool "MEAS MS58XX Altimeter support"
default n default n
select I2C select I2C
@@ -245,20 +250,27 @@ config MS58XX_I2C_FREQUENCY
int "MS58XX I2C frequency" int "MS58XX I2C frequency"
default 400000 default 400000
range 1 400000 range 1 400000
depends on MS58XX depends on SENSORS_MS58XX
config MS58XX_VDD config MS58XX_VDD
int "MEAS MS58XX VDD" int "MEAS MS58XX VDD"
default 30 default 30
depends on MS58XX depends on SENSORS_MS58XX
config MPL115A config SENSORS_MPL115A
bool "Freescale MPL115A Barometer Sensor support" bool "Freescale MPL115A Barometer Sensor support"
default n default n
select SPI select SPI
---help--- ---help---
Enable driver support for the Freescale MPL115A barometer sensor. Enable driver support for the Freescale MPL115A barometer sensor.
config MPL115A_REGDEBUG
bool "Debug support for the MPL115A"
default n
depends on SENSORS_MPL115A
---help---
Enables register level debug features for the MPL115A
config SENSORS_ADXL345 config SENSORS_ADXL345
bool "AnalogDevices ADXL345 Driver" bool "AnalogDevices ADXL345 Driver"
default n default n
@@ -379,9 +391,10 @@ config SENSORS_XEN1210
---help--- ---help---
Enable driver support for the Sensixs XEN1210 Magnetometer. Enable driver support for the Sensixs XEN1210 Magnetometer.
config XEN1210_REGDBUG config XEN1210_REGDEBUG
bool "Debug support for the XEN1210" bool "Debug support for the XEN1210"
default n default n
depends on SENSORS_XEN1210
---help--- ---help---
Enables register level debug features for the XEN1210 Enables register level debug features for the XEN1210
+8 -8
View File
@@ -65,11 +65,11 @@ ifeq ($(CONFIG_LIS331DL),y)
CSRCS += lis331dl.c CSRCS += lis331dl.c
endif endif
ifeq ($(CONFIG_SN_LSM9DS1),y) ifeq ($(CONFIG_SENSORS_LSM9DS1),y)
CSRCS += lsm9ds1.c CSRCS += lsm9ds1.c
endif endif
ifeq ($(CONFIG_LPS25H),y) ifeq ($(CONFIG_SENSORS_LPS25H),y)
CSRCS += lps25h.c CSRCS += lps25h.c
endif endif
@@ -101,23 +101,23 @@ ifeq ($(CONFIG_SENSORS_LM92),y)
CSRCS += lm92.c CSRCS += lm92.c
endif endif
ifeq ($(CONFIG_MB7040),y) ifeq ($(CONFIG_SENSORS_MB7040),y)
CSRCS += mb7040.c CSRCS += mb7040.c
endif endif
ifeq ($(CONFIG_MCP9844),y) ifeq ($(CONFIG_SENSORS_MCP9844),y)
CSRCS += mcp9844.c CSRCS += mcp9844.c
endif endif
ifeq ($(CONFIG_MLX90393),y) ifeq ($(CONFIG_SENSORS_MLX90393),y)
CSRCS += mlx90393.c CSRCS += mlx90393.c
endif endif
ifeq ($(CONFIG_MS58XX),y) ifeq ($(CONFIG_SENSORS_MS58XX),y)
CSRCS += ms58xx.c CSRCS += ms58xx.c
endif endif
ifeq ($(CONFIG_LTC4151),y) ifeq ($(CONFIG_SENSORS_LTC4151),y)
CSRCS += ltc4151.c CSRCS += ltc4151.c
endif endif
@@ -142,7 +142,7 @@ ifeq ($(CONFIG_SENSORS_MAX6675),y)
CSRCS += max6675.c CSRCS += max6675.c
endif endif
ifeq ($(CONFIG_MPL115A),y) ifeq ($(CONFIG_SENSORS_MPL115A),y)
CSRCS += mpl115a.c CSRCS += mpl115a.c
endif endif
+2 -2
View File
@@ -52,7 +52,7 @@
#include <nuttx/sensors/lsm9ds1.h> #include <nuttx/sensors/lsm9ds1.h>
#include <nuttx/random.h> #include <nuttx/random.h>
#if defined(CONFIG_I2C) && defined(CONFIG_SN_LSM9DS1) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_LSM9DS1)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -1581,4 +1581,4 @@ int lsm9ds1mag_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
LSM9DS1_OUT_X_L_M); LSM9DS1_OUT_X_L_M);
} }
#endif /* CONFIG_I2C && CONFIG_SN_LSM9DS1 */ #endif /* CONFIG_I2C && CONFIG_SENSORS_LSM9DS1 */
+2 -2
View File
@@ -50,7 +50,7 @@
#include <nuttx/i2c/i2c_master.h> #include <nuttx/i2c/i2c_master.h>
#include <nuttx/sensors/ltc4151.h> #include <nuttx/sensors/ltc4151.h>
#if defined(CONFIG_I2C) && defined(CONFIG_LTC4151) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_LTC4151)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -365,4 +365,4 @@ int ltc4151_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
return ret; return ret;
} }
#endif /* CONFIG_I2C && CONFIG_LTC4151 */ #endif /* CONFIG_I2C && CONFIG_SENSORS_LTC4151 */
+2 -2
View File
@@ -53,7 +53,7 @@
#include <nuttx/sensors/mb7040.h> #include <nuttx/sensors/mb7040.h>
#include <nuttx/random.h> #include <nuttx/random.h>
#if defined(CONFIG_I2C) && defined(CONFIG_MB7040) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_MB7040)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -406,4 +406,4 @@ int mb7040_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
return ret; return ret;
} }
#endif /* CONFIG_I2C && CONFIG_MB7040 */ #endif /* CONFIG_I2C && CONFIG_SENSORS_MB7040 */
+1 -1
View File
@@ -52,7 +52,7 @@
#include <nuttx/sensors/mcp9844.h> #include <nuttx/sensors/mcp9844.h>
#include <nuttx/random.h> #include <nuttx/random.h>
#if defined(CONFIG_I2C) && defined(CONFIG_MCP9844) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_MCP9844)
/**************************************************************************** /****************************************************************************
* Pre-process Definitions * Pre-process Definitions
+2 -2
View File
@@ -52,7 +52,7 @@
#include <nuttx/sensors/mlx90393.h> #include <nuttx/sensors/mlx90393.h>
#include <nuttx/random.h> #include <nuttx/random.h>
#if defined(CONFIG_SPI) && defined(CONFIG_MLX90393) #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MLX90393)
/**************************************************************************** /****************************************************************************
* Private * Private
@@ -627,4 +627,4 @@ int mlx90393_register(FAR const char *devpath, FAR struct spi_dev_s *spi,
return OK; return OK;
} }
#endif /* CONFIG_SPI && CONFIG_MLX90393 */ #endif /* CONFIG_SPI && CONFIG_SENSORS_MLX90393 */
+2 -2
View File
@@ -52,7 +52,7 @@
#include <nuttx/sensors/mpl115a.h> #include <nuttx/sensors/mpl115a.h>
#include <nuttx/random.h> #include <nuttx/random.h>
#if defined(CONFIG_SPI) && defined(CONFIG_MPL115A) #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MPL115A)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -409,4 +409,4 @@ int mpl115a_register(FAR const char *devpath, FAR struct spi_dev_s *spi)
return ret; return ret;
} }
#endif /* CONFIG_SPI && CONFIG_MPL115A */ #endif /* CONFIG_SPI && CONFIG_SENSORS_MPL115A */
+2 -2
View File
@@ -55,7 +55,7 @@
#include <nuttx/sensors/ms58xx.h> #include <nuttx/sensors/ms58xx.h>
#include <nuttx/random.h> #include <nuttx/random.h>
#if defined(CONFIG_I2C) && defined(CONFIG_MS58XX) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_MS58XX)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -1211,4 +1211,4 @@ errout:
return ret; return ret;
} }
#endif /* CONFIG_I2C && CONFIG_MS58XX */ #endif /* CONFIG_I2C && CONFIG_SENSORS_MS58XX */
+2 -2
View File
@@ -43,7 +43,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/sensors/ioctl.h> #include <nuttx/sensors/ioctl.h>
#if defined(CONFIG_I2C) && defined(CONFIG_SN_LSM9DS1) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_LSM9DS1)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -141,5 +141,5 @@ int lsm9ds1mag_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
} }
#endif #endif
#endif /* CONFIG_I2C && CONFIG_SN_LSM9DS1 */ #endif /* CONFIG_I2C && CONFIG_SENSORS_LSM9DS1 */
#endif /* __INCLUDE_NUTTX_SENSORS_LSM9DS1 */ #endif /* __INCLUDE_NUTTX_SENSORS_LSM9DS1 */
+2 -2
View File
@@ -44,7 +44,7 @@
#include <nuttx/sensors/ioctl.h> #include <nuttx/sensors/ioctl.h>
#include <fixedmath.h> #include <fixedmath.h>
#if defined(CONFIG_I2C) && defined(CONFIG_LTC4151) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_LTC4151)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -126,5 +126,5 @@ int ltc4151_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
} }
#endif #endif
#endif /* CONFIG_I2C && CONFIG_LTC4151 */ #endif /* CONFIG_I2C && CONFIG_SENSORS_LTC4151 */
#endif /* __INCLUDE_NUTTX_SENSORS_LTC4151_H */ #endif /* __INCLUDE_NUTTX_SENSORS_LTC4151_H */
+3 -3
View File
@@ -43,7 +43,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/sensors/ioctl.h> #include <nuttx/sensors/ioctl.h>
#if defined(CONFIG_I2C) && defined(CONFIG_MB7040) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_MB7040)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -53,7 +53,7 @@
* *
* CONFIG_I2C * CONFIG_I2C
* Enables support for I2C drivers * Enables support for I2C drivers
* CONFIG_MB7040 * CONFIG_SENSORS_MB7040
* Enables support for the MB7040 driver * Enables support for the MB7040 driver
*/ */
@@ -110,5 +110,5 @@ int mb7040_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
} }
#endif #endif
#endif /* CONFIG_I2C && CONFIG_MB7040 */ #endif /* CONFIG_I2C && CONFIG_SENSORS_MB7040 */
#endif /* __INCLUDE_NUTTX_SENSORS_MB7040 */ #endif /* __INCLUDE_NUTTX_SENSORS_MB7040 */
+2 -2
View File
@@ -43,7 +43,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/sensors/ioctl.h> #include <nuttx/sensors/ioctl.h>
#if defined(CONFIG_I2C) && defined(CONFIG_MCP9844) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_MCP9844)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -119,5 +119,5 @@ int mcp9844_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
} }
#endif #endif
#endif /* CONFIG_I2C && CONFIG_MCP9844 */ #endif /* CONFIG_I2C && CONFIG_SENSORS_MCP9844 */
#endif /* __INCLUDE_NUTTX_SENSORS_MCP9844_H */ #endif /* __INCLUDE_NUTTX_SENSORS_MCP9844_H */
+2 -2
View File
@@ -45,7 +45,7 @@
#include <nuttx/fs/ioctl.h> #include <nuttx/fs/ioctl.h>
#include <nuttx/spi/spi.h> #include <nuttx/spi/spi.h>
#if defined(CONFIG_SPI) && defined(CONFIG_MLX90393) #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MLX90393)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -148,6 +148,6 @@ int mlx90393_register(FAR const char *devpath, FAR struct spi_dev_s *spi,
} }
#endif #endif
#endif /* CONFIG_SPI && CONFIG_MLX90393 */ #endif /* CONFIG_SPI && CONFIG_SENSORS_MLX90393 */
#endif /* __INCLUDE_NUTTX_SENSORS_MLX90393_H */ #endif /* __INCLUDE_NUTTX_SENSORS_MLX90393_H */
+2 -2
View File
@@ -38,7 +38,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#if defined(CONFIG_SPI) && defined(CONFIG_MPL115A) #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MPL115A)
/******************************************************************************************** /********************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -126,5 +126,5 @@ int mpl115a_register(FAR const char *devpath, FAR struct spi_dev_s *spi);
} }
#endif #endif
#endif /* CONFIG_SPI && CONFIG_MPL115A */ #endif /* CONFIG_SPI && CONFIG_SENSORS_MPL115A */
#endif /* __INCLUDE_NUTTX_SENSORS_MPL115A_H */ #endif /* __INCLUDE_NUTTX_SENSORS_MPL115A_H */
+3 -3
View File
@@ -43,7 +43,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/sensors/ioctl.h> #include <nuttx/sensors/ioctl.h>
#if defined(CONFIG_I2C) && defined(CONFIG_MS58XX) #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_MS58XX)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -53,7 +53,7 @@
* *
* CONFIG_I2C * CONFIG_I2C
* Enables support for I2C drivers * Enables support for I2C drivers
* CONFIG_MS58XX * CONFIG_SENSORS_MS58XX
* Enables support for the MS58XX driver * Enables support for the MS58XX driver
* CONFIG_MS58XX_VDD * CONFIG_MS58XX_VDD
*/ */
@@ -125,5 +125,5 @@ int ms58xx_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
} }
#endif #endif
#endif /* CONFIG_I2C && CONFIG_MS58XX */ #endif /* CONFIG_I2C && CONFIG_SENSORS_MS58XX */
#endif /* __INCLUDE_NUTTX_SENSORS_MS58XX */ #endif /* __INCLUDE_NUTTX_SENSORS_MS58XX */