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 /test | |
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 'test')
-rw-r--r-- | test/powerdemo.h | 6 | ||||
-rw-r--r-- | test/test_config.h | 6 | ||||
-rw-r--r-- | test/usb_pd_test_util.h | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/test/powerdemo.h b/test/powerdemo.h index 78acfc095b..2e0360f7c2 100644 --- a/test/powerdemo.h +++ b/test/powerdemo.h @@ -5,12 +5,12 @@ /* Power state machine demo module for Chrome EC */ -#ifndef __CROS_EC_POWERDEMO_H -#define __CROS_EC_POWERDEMO_H +#ifndef __TEST_POWERDEMO_H +#define __TEST_POWERDEMO_H #include "common.h" /* Initializes the module. */ int power_demo_init(void); -#endif /* __CROS_EC_POWERDEMO_H */ +#endif /* __TEST_POWERDEMO_H */ diff --git a/test/test_config.h b/test/test_config.h index 88382c89c8..a9f21b8006 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -5,8 +5,8 @@ /* Per-test config flags */ -#ifndef __CROS_EC_TEST_CONFIG_H -#define __CROS_EC_TEST_CONFIG_H +#ifndef __TEST_TEST_CONFIG_H +#define __TEST_TEST_CONFIG_H /* Test config flags only apply for test builds */ #ifdef TEST_BUILD @@ -119,4 +119,4 @@ int board_discharge_on_ac(int enabled); #endif #endif /* TEST_BUILD */ -#endif /* __CROS_EC_TEST_CONFIG_H */ +#endif /* __TEST_TEST_CONFIG_H */ diff --git a/test/usb_pd_test_util.h b/test/usb_pd_test_util.h index d54296ef17..561033d8fa 100644 --- a/test/usb_pd_test_util.h +++ b/test/usb_pd_test_util.h @@ -5,8 +5,8 @@ * Test utilities for USB PD unit test. */ -#ifndef __USB_PD_TEST_UTIL_H -#define __USB_PD_TEST_UTIL_H +#ifndef __TEST_USB_PD_TEST_UTIL_H +#define __TEST_USB_PD_TEST_UTIL_H /* Simulate Rx message */ void pd_test_rx_set_preamble(int port, int has_preamble); @@ -29,4 +29,4 @@ int pd_test_tx_msg_verify_short(int port, uint16_t val); int pd_test_tx_msg_verify_word(int port, uint32_t val); int pd_test_tx_msg_verify_crc(int port); -#endif /* __USB_PD_TEST_UTIL_H */ +#endif /* __TEST_USB_PD_TEST_UTIL_H */ |