drivrs/sensors/hts221: Fix inconsistent configuration variable naming; Try to bring closer to an as-of-yet undocumented naming convention.

This commit is contained in:
Gregory Nutt
2017-08-24 09:22:36 -06:00
parent a668806b94
commit 9e386e3b31
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ config HTS221_I2C_FREQUENCY
default 400000
range 1 400000
config DEBUG_HTS221
config HTS221_DEBUG
bool "Debug support for the HTS221"
default n
---help---
+1 -1
View File
@@ -89,7 +89,7 @@ ifeq ($(CONFIG_BMP180),y)
CSRCS += bmp180.c
endif
ifeq ($(CONFIG_HTS221),y)
ifeq ($(CONFIG_SENSORS_HTS221),y)
CSRCS += hts221.c
endif
+3 -3
View File
@@ -55,7 +55,7 @@
* Pre-Processor Definitions
****************************************************************************/
#ifdef CONFIG_DEBUG_HTS221
#ifdef CONFIG_HTS221_DEBUG
# define hts221_dbg(x, ...) _info(x, ##__VA_ARGS__)
#else
# define hts221_dbg(x, ...) sninfo(x, ##__VA_ARGS__)
@@ -771,7 +771,7 @@ static int hts221_read_convert_data(FAR struct hts221_dev_s *priv,
return ret;
}
#ifdef CONFIG_DEBUG_HTS221
#ifdef CONFIG_HTS221_DEBUG
static int hts221_dump_registers(FAR struct hts221_dev_s *priv)
{
int ret = OK;
@@ -929,7 +929,7 @@ static int hts221_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
ret = hts221_read_raw_data(priv, (FAR hts221_raw_data_t *) arg);
break;
#ifdef CONFIG_DEBUG_HTS221
#ifdef CONFIG_HTS221_DEBUG
case SNIOC_DUMP_REGS:
ret = hts221_dump_registers(priv);
break;