diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-06-16 21:51:55 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-18 19:07:00 +0000 |
commit | 104f811e6730e129a98fac6fc3941bbe0d0e857f (patch) | |
tree | 17a0d78af92eceb0cde468f56afc41f0ec726dd9 /core/cortex-m | |
parent | 19cd951027b7bd7b726e085c46b8cc9c136b0980 (diff) | |
download | chrome-ec-104f811e6730e129a98fac6fc3941bbe0d0e857f.tar.gz |
cleanup: fix all the header guards
This unifies all the EC header files to use __CROS_EC_FILENAME_H
as the include guard. Well, except for test/ util/ and extra/
which use __TEST_ __UTIL_ and __EXTRA_ prefixes respectively.
BUG=chromium:496895
BRANCH=none
TEST=make buildall -j
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Change-Id: Iea71b3a08bdec94a11239de810a2b2e152b15029
Reviewed-on: https://chromium-review.googlesource.com/278121
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'core/cortex-m')
-rw-r--r-- | core/cortex-m/config_core.h | 6 | ||||
-rw-r--r-- | core/cortex-m/cpu.h | 6 | ||||
-rw-r--r-- | core/cortex-m/include/math.h | 6 | ||||
-rw-r--r-- | core/cortex-m/irq_handler.h | 6 |
4 files changed, 12 insertions, 12 deletions
diff --git a/core/cortex-m/config_core.h b/core/cortex-m/config_core.h index e72f4e58bb..b7a75db960 100644 --- a/core/cortex-m/config_core.h +++ b/core/cortex-m/config_core.h @@ -3,8 +3,8 @@ * found in the LICENSE file. */ -#ifndef __CONFIG_CORE_H -#define __CONFIG_CORE_H +#ifndef __CROS_EC_CONFIG_CORE_H +#define __CROS_EC_CONFIG_CORE_H /* Linker binary architecture and format */ #define BFD_ARCH arm @@ -12,4 +12,4 @@ #define CONFIG_SOFTWARE_PANIC -#endif /* __CONFIG_CORE_H */ +#endif /* __CROS_EC_CONFIG_CORE_H */ diff --git a/core/cortex-m/cpu.h b/core/cortex-m/cpu.h index 5b1046b42f..e170d42782 100644 --- a/core/cortex-m/cpu.h +++ b/core/cortex-m/cpu.h @@ -5,8 +5,8 @@ * Registers map and defintions for Cortex-MLM4x processor */ -#ifndef __CPU_H -#define __CPU_H +#ifndef __CROS_EC_CPU_H +#define __CROS_EC_CPU_H #include <stdint.h> @@ -50,4 +50,4 @@ enum { /* Set up the cpu to detect faults */ void cpu_init(void); -#endif /* __CPU_H */ +#endif /* __CROS_EC_CPU_H */ diff --git a/core/cortex-m/include/math.h b/core/cortex-m/include/math.h index 485f28ba23..fbcd06e233 100644 --- a/core/cortex-m/include/math.h +++ b/core/cortex-m/include/math.h @@ -5,8 +5,8 @@ /* Math utility functions for ARMv7 */ -#ifndef __EC_MATH_H -#define __EC_MATH_H +#ifndef __CROS_EC_MATH_H +#define __CROS_EC_MATH_H #ifdef CONFIG_FPU static inline float sqrtf(float v) @@ -21,4 +21,4 @@ static inline float sqrtf(float v) } #endif /* CONFIG_FPU */ -#endif /* __EC_MATH_H */ +#endif /* __CROS_EC_MATH_H */ diff --git a/core/cortex-m/irq_handler.h b/core/cortex-m/irq_handler.h index 602c3245e4..0d659b0610 100644 --- a/core/cortex-m/irq_handler.h +++ b/core/cortex-m/irq_handler.h @@ -5,8 +5,8 @@ /* Helper to declare IRQ handling routines */ -#ifndef __IRQ_HANDLER_H -#define __IRQ_HANDLER_H +#ifndef __CROS_EC_IRQ_HANDLER_H +#define __CROS_EC_IRQ_HANDLER_H #ifdef CONFIG_TASK_PROFILING #define bl_task_start_irq_handler "bl task_start_irq_handler\n" @@ -38,4 +38,4 @@ const struct irq_priority IRQ_PRIORITY(irq) \ __attribute__((section(".rodata.irqprio"))) \ = {irq, priority} -#endif /* __IRQ_HANDLER_H */ +#endif /* __CROS_EC_IRQ_HANDLER_H */ |