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/quackingstick | |
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/quackingstick')
-rw-r--r-- | board/quackingstick/base_detect.c | 2 | ||||
-rw-r--r-- | board/quackingstick/board.c | 7 | ||||
-rw-r--r-- | board/quackingstick/led.c | 2 | ||||
-rw-r--r-- | board/quackingstick/usbc_config.c | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/board/quackingstick/base_detect.c b/board/quackingstick/base_detect.c index 620381f09b..f3045897d6 100644 --- a/board/quackingstick/base_detect.c +++ b/board/quackingstick/base_detect.c @@ -6,8 +6,8 @@ /* Coachz base detection code */ #include "adc.h" -#include "board.h" #include "base_state.h" +#include "board.h" #include "chipset.h" #include "common.h" #include "console.h" diff --git a/board/quackingstick/board.c b/board/quackingstick/board.c index 7002a62e03..2cb1ac37e5 100644 --- a/board/quackingstick/board.c +++ b/board/quackingstick/board.c @@ -10,14 +10,14 @@ #include "charge_manager.h" #include "charge_state.h" #include "common.h" -#include "extpower.h" #include "driver/accel_bma2x2.h" #include "driver/accelgyro_bmi_common.h" -#include "driver/accelgyro_icm_common.h" #include "driver/accelgyro_icm42607.h" +#include "driver/accelgyro_icm_common.h" #include "driver/ppc/sn5s330.h" #include "driver/tcpm/ps8xxx.h" #include "driver/tcpm/tcpci.h" +#include "extpower.h" #include "gpio.h" #include "hooks.h" #include "lid_switch.h" @@ -30,9 +30,9 @@ #include "pwm.h" #include "pwm_chip.h" #include "queue.h" -#include "system.h" #include "shi_chip.h" #include "switch.h" +#include "system.h" #include "tablet_mode.h" #include "task.h" #include "temp_sensor.h" @@ -51,6 +51,7 @@ static void usb0_evt(enum gpio_signal signal); static void ppc_interrupt(enum gpio_signal signal); static void board_connect_c0_sbu(enum gpio_signal s); +/* Must come after other header files and interrupt handler declarations */ #include "gpio_list.h" /* GPIO Interrupt Handlers */ diff --git a/board/quackingstick/led.c b/board/quackingstick/led.c index a18124f2be..ef3a858e2b 100644 --- a/board/quackingstick/led.c +++ b/board/quackingstick/led.c @@ -10,13 +10,13 @@ #include "charge_state.h" #include "chipset.h" #include "ec_commands.h" +#include "extpower.h" #include "gpio.h" #include "hooks.h" #include "host_command.h" #include "led_common.h" #include "system.h" #include "util.h" -#include "extpower.h" #define LED_ONE_SEC (1000 / HOOK_TICK_INTERVAL_MS) /* Battery LED blinks every per 400ms */ diff --git a/board/quackingstick/usbc_config.c b/board/quackingstick/usbc_config.c index 8107e2c286..073c394de2 100644 --- a/board/quackingstick/usbc_config.c +++ b/board/quackingstick/usbc_config.c @@ -5,9 +5,9 @@ /* Trogdor family-specific USB-C configuration */ +#include "charge_state.h" #include "charger.h" #include "charger/isl923x_public.h" -#include "charge_state.h" #include "console.h" #include "temp_sensor.h" #include "usb_pd.h" |