summaryrefslogtreecommitdiff
path: root/cts
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2022-11-21 17:07:15 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-22 18:21:01 +0000
commit9b2ac6721fc26c8cafd367329d3ac57fc7470177 (patch)
tree789fe3459ce7d0ab6585ccf765fd38043a660cc4 /cts
parent65325e63bf7c96268508363248b7734c8b45d67d (diff)
downloadchrome-ec-9b2ac6721fc26c8cafd367329d3ac57fc7470177.tar.gz
cts: Sort header files
Sort all headers in cts 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 -j$(nproc) buildall_only runtests TEST=zmake compare-builds Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I8e4e195d77d9d66db9f08418aeb6e474368d097b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4047096 Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'cts')
-rw-r--r--cts/common/th_common.c2
-rw-r--r--cts/gpio/dut.c5
-rw-r--r--cts/gpio/th.c5
-rw-r--r--cts/i2c/th.c3
-rw-r--r--cts/interrupt/dut.c3
-rw-r--r--cts/mutex/dut.c2
-rw-r--r--cts/mutex/th.c2
7 files changed, 11 insertions, 11 deletions
diff --git a/cts/common/th_common.c b/cts/common/th_common.c
index 3084579b99..cc9c6be75f 100644
--- a/cts/common/th_common.c
+++ b/cts/common/th_common.c
@@ -3,10 +3,10 @@
* found in the LICENSE file.
*/
+#include "cts_common.h"
#include "gpio.h"
#include "timer.h"
#include "watchdog.h"
-#include "cts_common.h"
/* Return SUCCESS if and only if we reach end of function
* Returning success here means sync was successful
diff --git a/cts/gpio/dut.c b/cts/gpio/dut.c
index 92ae893a48..ef609cf4a8 100644
--- a/cts/gpio/dut.c
+++ b/cts/gpio/dut.c
@@ -4,13 +4,12 @@
*/
#include "common.h"
+#include "cts_common.h"
#include "gpio.h"
-#include "watchdog.h"
-#include "uart.h"
#include "task.h"
#include "timer.h"
+#include "uart.h"
#include "watchdog.h"
-#include "cts_common.h"
enum cts_rc sync_test(void)
{
diff --git a/cts/gpio/th.c b/cts/gpio/th.c
index 98fc232d1c..54a083cef9 100644
--- a/cts/gpio/th.c
+++ b/cts/gpio/th.c
@@ -4,13 +4,12 @@
*/
#include "common.h"
+#include "cts_common.h"
#include "gpio.h"
-#include "watchdog.h"
-#include "uart.h"
#include "task.h"
#include "timer.h"
+#include "uart.h"
#include "watchdog.h"
-#include "cts_common.h"
enum cts_rc sync_test(void)
{
diff --git a/cts/i2c/th.c b/cts/i2c/th.c
index ef57f6300c..b613f2d25d 100644
--- a/cts/i2c/th.c
+++ b/cts/i2c/th.c
@@ -3,7 +3,6 @@
* found in the LICENSE file.
*/
-#include <string.h>
#include "common.h"
#include "cts_common.h"
#include "cts_i2c.h"
@@ -14,6 +13,8 @@
#include "uart.h"
#include "watchdog.h"
+#include <string.h>
+
static uint8_t inbox[I2C_MAX_HOST_PACKET_SIZE + 2];
static char data_received;
diff --git a/cts/interrupt/dut.c b/cts/interrupt/dut.c
index c2e0af0f81..15bba740f0 100644
--- a/cts/interrupt/dut.c
+++ b/cts/interrupt/dut.c
@@ -3,7 +3,6 @@
* found in the LICENSE file.
*/
-#include <string.h>
#include "common.h"
#include "cts_common.h"
#include "gpio.h"
@@ -12,6 +11,8 @@
#include "timer.h"
#include "watchdog.h"
+#include <string.h>
+
static int got_interrupt;
static int wake_me_up;
static int state_index;
diff --git a/cts/mutex/dut.c b/cts/mutex/dut.c
index c48dfcaa64..c4778de957 100644
--- a/cts/mutex/dut.c
+++ b/cts/mutex/dut.c
@@ -6,8 +6,8 @@
* Tasks for mutexes basic tests.
*/
-#include "console.h"
#include "common.h"
+#include "console.h"
#include "cts_common.h"
#include "task.h"
#include "test_util.h"
diff --git a/cts/mutex/th.c b/cts/mutex/th.c
index c48dfcaa64..c4778de957 100644
--- a/cts/mutex/th.c
+++ b/cts/mutex/th.c
@@ -6,8 +6,8 @@
* Tasks for mutexes basic tests.
*/
-#include "console.h"
#include "common.h"
+#include "console.h"
#include "cts_common.h"
#include "task.h"
#include "test_util.h"