From 2d9afbf4236169e973f4196b1ab9d3e9737e2829 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 1 Feb 2019 04:42:44 -0600 Subject: [PATCH] samples: fxos8700-hid: Don't use CONFIG_ namespace for non Kconfig The sample was defining a #define with a CONFIG_ prefix but this wasn't coming from Kconfig. Change the define name not to conflict with the Kconfig CONFIG_ namespace. Signed-off-by: Kumar Gala --- samples/sensor/fxos8700-hid/src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/sensor/fxos8700-hid/src/main.c b/samples/sensor/fxos8700-hid/src/main.c index 1a7f86d7bb0..2f284f31eb6 100644 --- a/samples/sensor/fxos8700-hid/src/main.c +++ b/samples/sensor/fxos8700-hid/src/main.c @@ -54,7 +54,7 @@ LOG_MODULE_REGISTER(main); #ifdef CONFIG_FXOS8700 #include -#define CONFIG_SENSOR_ACCEL_NAME DT_NXP_FXOS8700_0_LABEL +#define SENSOR_ACCEL_NAME DT_NXP_FXOS8700_0_LABEL #endif static const u8_t hid_report_desc[] = { @@ -265,9 +265,9 @@ void main(void) } #endif - accel = device_get_binding(CONFIG_SENSOR_ACCEL_NAME); + accel = device_get_binding(SENSOR_ACCEL_NAME); if (accel == NULL) { - LOG_ERR("Could not get %s device", CONFIG_SENSOR_ACCEL_NAME); + LOG_ERR("Could not get %s device", SENSOR_ACCEL_NAME); return; }