mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
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:
@@ -68,7 +68,7 @@ config HTS221_I2C_FREQUENCY
|
|||||||
default 400000
|
default 400000
|
||||||
range 1 400000
|
range 1 400000
|
||||||
|
|
||||||
config DEBUG_HTS221
|
config HTS221_DEBUG
|
||||||
bool "Debug support for the HTS221"
|
bool "Debug support for the HTS221"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ ifeq ($(CONFIG_BMP180),y)
|
|||||||
CSRCS += bmp180.c
|
CSRCS += bmp180.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_HTS221),y)
|
ifeq ($(CONFIG_SENSORS_HTS221),y)
|
||||||
CSRCS += hts221.c
|
CSRCS += hts221.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
* Pre-Processor Definitions
|
* Pre-Processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_HTS221
|
#ifdef CONFIG_HTS221_DEBUG
|
||||||
# define hts221_dbg(x, ...) _info(x, ##__VA_ARGS__)
|
# define hts221_dbg(x, ...) _info(x, ##__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
# define hts221_dbg(x, ...) sninfo(x, ##__VA_ARGS__)
|
# 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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_HTS221
|
#ifdef CONFIG_HTS221_DEBUG
|
||||||
static int hts221_dump_registers(FAR struct hts221_dev_s *priv)
|
static int hts221_dump_registers(FAR struct hts221_dev_s *priv)
|
||||||
{
|
{
|
||||||
int ret = OK;
|
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);
|
ret = hts221_read_raw_data(priv, (FAR hts221_raw_data_t *) arg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_HTS221
|
#ifdef CONFIG_HTS221_DEBUG
|
||||||
case SNIOC_DUMP_REGS:
|
case SNIOC_DUMP_REGS:
|
||||||
ret = hts221_dump_registers(priv);
|
ret = hts221_dump_registers(priv);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user