diff options
author | Jett Rink <jettrink@chromium.org> | 2020-11-05 14:49:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-09 19:13:19 +0000 |
commit | 4d3243b69375f20f6e61bcc73f03cb10510457b3 (patch) | |
tree | 9a64836f224f49ebf73bc42af07751fe930756d9 | |
parent | 1b4e189e44379cf1db7639f2549441a8d678a978 (diff) | |
download | chrome-ec-4d3243b69375f20f6e61bcc73f03cb10510457b3.tar.gz |
cleanup: follow header include style
In order to align with go/zephyr-shim-how-to, update all of the
platform/ec header files to use "quotes" and only use <brackets> for
zephyr header files. Also include an empty line between the two.
BRANCH=none
BUG=none
TEST=all zephyr tests build and pass; build volteer
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: I27c275c24aa4f8eb40e100b07517b60f548f06cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521594
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | zephyr/shim/include/board.h | 7 | ||||
-rw-r--r-- | zephyr/shim/src/gpio.c | 3 | ||||
-rw-r--r-- | zephyr/shim/src/system.c | 7 | ||||
-rw-r--r-- | zephyr/shim/src/tasks.c | 2 |
4 files changed, 11 insertions, 8 deletions
diff --git a/zephyr/shim/include/board.h b/zephyr/shim/include/board.h index 2a54b097b0..4edda8ec7c 100644 --- a/zephyr/shim/include/board.h +++ b/zephyr/shim/include/board.h @@ -9,10 +9,11 @@ #include <devicetree.h> /* Included shimed version of gpio signal. */ -#include <gpio_signal.h> -/* Include board specific gpio mapping/aliases if named_gpios node exists */ +#include "gpio_signal.h" + +/* Include board specific gpio mapping/aliases if named_pgios node exists */ #if DT_NODE_EXISTS(DT_PATH(named_gpios)) -#include <gpio_map.h> +#include "gpio_map.h" #endif #endif /* __BOARD_H */ diff --git a/zephyr/shim/src/gpio.c b/zephyr/shim/src/gpio.c index bf0d1fd1a5..0b74e44234 100644 --- a/zephyr/shim/src/gpio.c +++ b/zephyr/shim/src/gpio.c @@ -4,11 +4,12 @@ */ #include <device.h> -#include <gpio.h> #include <init.h> #include <kernel.h> #include <logging/log.h> +#include "gpio.h" + LOG_MODULE_REGISTER(gpio_shim, LOG_LEVEL_ERR); /* diff --git a/zephyr/shim/src/system.c b/zephyr/shim/src/system.c index d9b199e917..8ab1ac3b15 100644 --- a/zephyr/shim/src/system.c +++ b/zephyr/shim/src/system.c @@ -3,13 +3,14 @@ * found in the LICENSE file. */ +#include <errno.h> +#include <string.h> +#include <sys/util.h> + #include "config.h" #include "ec_commands.h" #include "sysjump.h" #include "system.h" -#include <sys/util.h> -#include <string.h> -#include <errno.h> /* Ongoing actions preventing going into deep-sleep mode. */ uint32_t sleep_mask; diff --git a/zephyr/shim/src/tasks.c b/zephyr/shim/src/tasks.c index f954401a45..d3382a655b 100644 --- a/zephyr/shim/src/tasks.c +++ b/zephyr/shim/src/tasks.c @@ -6,9 +6,9 @@ #include <kernel.h> #include <init.h> #include <sys/atomic.h> -#include <task.h> #include "shimmed_tasks.h" +#include "task.h" BUILD_ASSERT(CONFIG_NUM_PREEMPT_PRIORITIES >= TASK_ID_COUNT, "Must increase number of available preempt priorities"); |