diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-11-28 10:00:45 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-01 00:03:08 +0000 |
commit | c50046ad633f1958107eead2b778422a2f33d7af (patch) | |
tree | 3636ac3fd90540f7b05fd8707407c038a0f2913e /board/host | |
parent | 9446042f202f9e03e8cd97807493b9eba3188ff1 (diff) | |
download | chrome-ec-c50046ad633f1958107eead2b778422a2f33d7af.tar.gz |
board: Sort header files
Sort all includes in board with the clang-format rules used by
the zephyr project.
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j72 buildall_only runtests
TEST=zmake compare-builds -a
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I6ad72b167cbb768a64c338fa633eb4bf5a401897
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4060360
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'board/host')
-rw-r--r-- | board/host/board.c | 3 | ||||
-rw-r--r-- | board/host/charger.c | 2 | ||||
-rw-r--r-- | board/host/chipset.c | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/board/host/board.c b/board/host/board.c index baaed22b43..1be8d5c1a8 100644 --- a/board/host/board.c +++ b/board/host/board.c @@ -13,8 +13,8 @@ #include "i2c.h" #include "inductive_charging.h" #include "lid_switch.h" -#include "motion_sense.h" #include "motion_lid.h" +#include "motion_sense.h" #include "power_button.h" #include "spi.h" #include "temp_sensor.h" @@ -30,6 +30,7 @@ */ #define GPIO_0 0 +/* Must come after other header files and interrupt handler declarations */ #include "gpio_list.h" test_mockable const struct tcpc_config_t tcpc_config[] = { diff --git a/board/host/charger.c b/board/host/charger.c index 0580ddcb41..7fa9b78dd1 100644 --- a/board/host/charger.c +++ b/board/host/charger.c @@ -7,8 +7,8 @@ #include "battery_smart.h" #include "charger.h" -#include "console.h" #include "common.h" +#include "console.h" #include "util.h" static const struct charger_info mock_charger_info = { diff --git a/board/host/chipset.c b/board/host/chipset.c index 47ad097c53..ece97dc4fd 100644 --- a/board/host/chipset.c +++ b/board/host/chipset.c @@ -8,13 +8,14 @@ /* Does not run a chipset task, but does emulate an AP chipset */ #define CONFIG_AP_POWER_CONTROL -#include <stdio.h> #include "chipset.h" #include "common.h" #include "hooks.h" #include "task.h" #include "test_util.h" +#include <stdio.h> + static int chipset_state = CHIPSET_STATE_SOFT_OFF; static int power_on_req; static int power_off_req; |