summaryrefslogtreecommitdiff
path: root/board/mushu
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/mushu
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/mushu')
-rw-r--r--board/mushu/board.c5
-rw-r--r--board/mushu/led.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/board/mushu/board.c b/board/mushu/board.c
index 7197f7e136..15893a4b87 100644
--- a/board/mushu/board.c
+++ b/board/mushu/board.c
@@ -36,8 +36,8 @@
#include "system.h"
#include "task.h"
#include "temp_sensor.h"
-#include "thermal.h"
#include "temp_sensor/thermistor.h"
+#include "thermal.h"
#include "uart.h"
#include "usb_charge.h"
#include "usb_pd.h"
@@ -107,7 +107,8 @@ static void bc12_interrupt(enum gpio_signal signal)
}
}
-#include "gpio_list.h" /* Must come after other header files. */
+/* Must come after other header files and interrupt handler declarations */
+#include "gpio_list.h"
/******************************************************************************/
/* SPI devices */
diff --git a/board/mushu/led.c b/board/mushu/led.c
index 6d20ecdedf..1ec2075586 100644
--- a/board/mushu/led.c
+++ b/board/mushu/led.c
@@ -5,11 +5,11 @@
* Power and battery LED control for Mushu
*/
+#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