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/volet | |
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/volet')
-rw-r--r-- | board/volet/board.c | 9 | ||||
-rw-r--r-- | board/volet/led.c | 2 | ||||
-rw-r--r-- | board/volet/sensors.c | 10 |
3 files changed, 11 insertions, 10 deletions
diff --git a/board/volet/board.c b/board/volet/board.c index 47140464b6..222fdde37e 100644 --- a/board/volet/board.c +++ b/board/volet/board.c @@ -4,10 +4,10 @@ */ /* Volteer board-specific configuration */ -#include "button.h" -#include "common.h" #include "accelgyro.h" +#include "button.h" #include "cbi_ec_fw_config.h" +#include "common.h" #include "driver/accel_bma2x2.h" #include "driver/accelgyro_bmi160.h" #include "driver/als_tcs3400.h" @@ -31,8 +31,8 @@ #include "pwm_chip.h" #include "switch.h" #include "system.h" -#include "task.h" #include "tablet_mode.h" +#include "task.h" #include "throttle_ap.h" #include "uart.h" #include "usb_mux.h" @@ -42,7 +42,8 @@ #include "usbc_ppc.h" #include "util.h" -#include "gpio_list.h" /* Must come after other header files. */ +/* Must come after other header files and interrupt handler declarations */ +#include "gpio_list.h" #define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ##args) diff --git a/board/volet/led.c b/board/volet/led.c index dceadd416f..2458e882e3 100644 --- a/board/volet/led.c +++ b/board/volet/led.c @@ -5,11 +5,11 @@ * Power and battery LED control for Volteer */ +#include "chipset.h" #include "ec_commands.h" #include "gpio.h" #include "led_common.h" #include "led_onoff_states.h" -#include "chipset.h" #define LED_ON_LVL 0 #define LED_OFF_LVL 1 diff --git a/board/volet/sensors.c b/board/volet/sensors.c index 0ea3f4b74a..932b39f43e 100644 --- a/board/volet/sensors.c +++ b/board/volet/sensors.c @@ -4,24 +4,24 @@ */ /* Volteer family-specific sensor configuration */ -#include "common.h" #include "accelgyro.h" #include "cbi_ec_fw_config.h" #include "cbi_ssfc.h" +#include "common.h" #include "driver/accel_bma2x2.h" #include "driver/accel_kionix.h" -#include "driver/accelgyro_bmi_common.h" #include "driver/accelgyro_bmi160.h" -#include "driver/accelgyro_icm_common.h" +#include "driver/accelgyro_bmi_common.h" #include "driver/accelgyro_icm426xx.h" +#include "driver/accelgyro_icm_common.h" #include "driver/als_tcs3400.h" #include "driver/sync.h" -#include "keyboard_scan.h" #include "gpio.h" #include "hooks.h" #include "i2c.h" -#include "task.h" +#include "keyboard_scan.h" #include "tablet_mode.h" +#include "task.h" #include "util.h" #define CPRINTS(format, args...) cprints(CC_MOTION_SENSE, format, ##args) |