summaryrefslogtreecommitdiff
path: root/board/voxel
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2022-11-28 10:00:45 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-12-01 00:03:08 +0000
commitc50046ad633f1958107eead2b778422a2f33d7af (patch)
tree3636ac3fd90540f7b05fd8707407c038a0f2913e /board/voxel
parent9446042f202f9e03e8cd97807493b9eba3188ff1 (diff)
downloadchrome-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/voxel')
-rw-r--r--board/voxel/board.c15
-rw-r--r--board/voxel/led.c2
-rw-r--r--board/voxel/sensors.c12
3 files changed, 15 insertions, 14 deletions
diff --git a/board/voxel/board.c b/board/voxel/board.c
index 4c8badeb1c..9faef2db6b 100644
--- a/board/voxel/board.c
+++ b/board/voxel/board.c
@@ -4,20 +4,20 @@
*/
/* 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"
#include "driver/bc12/pi3usb9201.h"
#include "driver/ppc/syv682x.h"
-#include "driver/tcpm/tcpci.h"
-#include "driver/tcpm/tusb422.h"
-#include "driver/tcpm/rt1715.h"
#include "driver/retimer/bb_retimer_public.h"
#include "driver/sync.h"
+#include "driver/tcpm/rt1715.h"
+#include "driver/tcpm/tcpci.h"
+#include "driver/tcpm/tusb422.h"
#include "extpower.h"
#include "fan.h"
#include "fan_chip.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/voxel/led.c b/board/voxel/led.c
index 5b15c9620f..acd00f8941 100644
--- a/board/voxel/led.c
+++ b/board/voxel/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/voxel/sensors.c b/board/voxel/sensors.c
index c3c074da9d..81e6b13b57 100644
--- a/board/voxel/sensors.c
+++ b/board/voxel/sensors.c
@@ -4,25 +4,25 @@
*/
/* 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_icm426xx.h"
+#include "driver/accelgyro_bmi_common.h"
#include "driver/accelgyro_icm42607.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)