mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +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
|
||||
range 1 400000
|
||||
|
||||
config DEBUG_HTS221
|
||||
config HTS221_DEBUG
|
||||
bool "Debug support for the HTS221"
|
||||
default n
|
||||
---help---
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user