openocd: src: fix incorrect SPDX tags
[fw/openocd] / src / rtos / chromium-ec.c
index 1c8f4e3f4c4787f9363185b37c754ec5a691e62b..782a4620a922936fd6c76972182a44f301f6667f 100644 (file)
@@ -1,12 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 /*
- * SPDX-License-Identifier: GPL-2.0
- *
  * Copyright (c) 2018 National Instruments Corp
  * Author: Moritz Fischer <moritz.fischer@ettus.com>
  *
  * Chromium-EC RTOS Task Awareness
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <helper/bits.h>
 #include <rtos/rtos.h>
 #include <target/target.h>
 #include <target/target_type.h>
@@ -16,7 +21,6 @@
 #define CROS_EC_MAX_TASKS 32
 #define CROS_EC_MAX_NAME 200
 #define CROS_EC_IDLE_STRING "<< idle >>"
-#define BIT(x) (1 << (x))
 
 struct chromium_ec_params {
        const char *target_name;