summaryrefslogtreecommitdiff
path: root/common/i2c_controller.c
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2022-11-22 16:07:09 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-29 22:17:20 +0000
commit599c438e80c634a580c33bfb431472cf36c1cad5 (patch)
treec8758ac487b656e949d82d4ebacd5df1ef8d1714 /common/i2c_controller.c
parente6da633c3840a90479a01224fcde04135408c787 (diff)
downloadchrome-ec-599c438e80c634a580c33bfb431472cf36c1cad5.tar.gz
common: Sort header files
Sort all includes in common 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: I70c2ed7bb2ce50c968f3e2dbdc274de3a455129a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4049889 Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'common/i2c_controller.c')
-rw-r--r--common/i2c_controller.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/i2c_controller.c b/common/i2c_controller.c
index e938dc0f8f..96809ee84c 100644
--- a/common/i2c_controller.c
+++ b/common/i2c_controller.c
@@ -7,12 +7,12 @@
#include "battery.h"
#include "builtin/assert.h"
-#include "clock.h"
#include "charge_state.h"
+#include "clock.h"
#include "console.h"
#include "crc8.h"
-#include "host_command.h"
#include "gpio.h"
+#include "host_command.h"
#include "i2c.h"
#include "i2c_bitbang.h"
#include "i2c_private.h"
@@ -22,12 +22,13 @@
#include "usb_pd.h"
#include "usb_pd_tcpm.h"
#include "util.h"
-#include "watchdog.h"
#include "virtual_battery.h"
+#include "watchdog.h"
#ifdef CONFIG_ZEPHYR
-#include <zephyr/drivers/i2c.h>
#include "i2c/i2c.h"
+
+#include <zephyr/drivers/i2c.h>
#endif /* CONFIG_ZEPHYR */
#define CPUTS(outstr) cputs(CC_I2C, outstr)