sensor/fxos8700: Switch to generic SYS_LOG_SENSOR_LEVEL

Change-Id: I21607836b2fe0cd1cd62759bed499af70a93e1be
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-11-26 21:17:34 +00:00
commit aba867d5e9
2 changed files with 1 additions and 20 deletions

View file

@ -22,25 +22,6 @@ menuconfig FXOS8700
help help
Enable driver for the FXOS8700 accelerometer/magnetometer Enable driver for the FXOS8700 accelerometer/magnetometer
config FXOS8700_SYS_LOG_LEVEL
int "Log level"
depends on SYS_LOG && FXOS8700
default 0
range 0 4
help
Sets log level for FXOS8700 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config FXOS8700_NAME config FXOS8700_NAME
string "Device name" string "Device name"
depends on FXOS8700 depends on FXOS8700

View file

@ -18,7 +18,7 @@
#include <i2c.h> #include <i2c.h>
#define SYS_LOG_DOMAIN "FXOS8700" #define SYS_LOG_DOMAIN "FXOS8700"
#define SYS_LOG_LEVEL CONFIG_FXOS8700_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#define FXOS8700_REG_STATUS 0x00 #define FXOS8700_REG_STATUS 0x00