diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-11-23 13:51:53 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-29 22:10:18 +0000 |
commit | e6da633c3840a90479a01224fcde04135408c787 (patch) | |
tree | e4676778af63ce1c39f2b745ebff008436713158 /driver/led | |
parent | 0a26305e5e47487a35edba5f68695a08b522643a (diff) | |
download | chrome-ec-e6da633c3840a90479a01224fcde04135408c787.tar.gz |
driver: Sort header files
Sort all includes in driver 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: I675e0db416b6b7cbcfce031c97fd24ad97b66f4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4052767
Reviewed-by: Yuval Peress <peress@google.com>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'driver/led')
-rw-r--r-- | driver/led/aw20198.c | 4 | ||||
-rw-r--r-- | driver/led/is31fl3733b.c | 3 | ||||
-rw-r--r-- | driver/led/is31fl3743b.c | 4 | ||||
-rw-r--r-- | driver/led/mp3385.h | 2 | ||||
-rw-r--r-- | driver/led/oz554.h | 2 | ||||
-rw-r--r-- | driver/led/tlc59116f.c | 4 |
6 files changed, 10 insertions, 9 deletions
diff --git a/driver/led/aw20198.c b/driver/led/aw20198.c index e2eea69481..eca596d62e 100644 --- a/driver/led/aw20198.c +++ b/driver/led/aw20198.c @@ -2,8 +2,6 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ -#include <string.h> - #include "aw20198.h" #include "common.h" #include "console.h" @@ -13,6 +11,8 @@ #include "stddef.h" #include "timer.h" +#include <string.h> + #define CPRINTF(fmt, args...) cprintf(CC_RGBKBD, "AW20198: " fmt, ##args) #define CPRINTS(fmt, args...) cprints(CC_RGBKBD, "AW20198: " fmt, ##args) diff --git a/driver/led/is31fl3733b.c b/driver/led/is31fl3733b.c index 33004d1cec..3ff0c19655 100644 --- a/driver/led/is31fl3733b.c +++ b/driver/led/is31fl3733b.c @@ -2,7 +2,6 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ -#include <string.h> #include "common.h" #include "console.h" #include "gpio.h" @@ -11,6 +10,8 @@ #include "stddef.h" #include "timer.h" +#include <string.h> + #define CPRINTF(fmt, args...) cprintf(CC_RGBKBD, "RGBKBD: " fmt, ##args) #define CPRINTS(fmt, args...) cprints(CC_RGBKBD, "RGBKBD: " fmt, ##args) diff --git a/driver/led/is31fl3743b.c b/driver/led/is31fl3743b.c index 5eef21c388..6725c1d406 100644 --- a/driver/led/is31fl3743b.c +++ b/driver/led/is31fl3743b.c @@ -2,8 +2,6 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ -#include <string.h> - #include "common.h" #include "console.h" #include "gpio.h" @@ -12,6 +10,8 @@ #include "stddef.h" #include "timer.h" +#include <string.h> + #define CPRINTF(fmt, args...) cprintf(CC_RGBKBD, "RGBKBD: " fmt, ##args) #define CPRINTS(fmt, args...) cprints(CC_RGBKBD, "RGBKBD: " fmt, ##args) diff --git a/driver/led/mp3385.h b/driver/led/mp3385.h index 733a8f76cd..2f179666d8 100644 --- a/driver/led/mp3385.h +++ b/driver/led/mp3385.h @@ -8,8 +8,8 @@ #ifndef __CROS_EC_MP3385_H #define __CROS_EC_MP3385_H -#include "gpio.h" #include "common.h" +#include "gpio.h" /* * Overridable board initialization. Should be overridden by a board diff --git a/driver/led/oz554.h b/driver/led/oz554.h index c735f9f3b9..27b43a1300 100644 --- a/driver/led/oz554.h +++ b/driver/led/oz554.h @@ -8,8 +8,8 @@ #ifndef __CROS_EC_OZ554_H #define __CROS_EC_OZ554_H -#include "gpio.h" #include "common.h" +#include "gpio.h" /* * Overridable board initialization. Should be overridden by a board diff --git a/driver/led/tlc59116f.c b/driver/led/tlc59116f.c index 1350602f6f..72e51e3fb8 100644 --- a/driver/led/tlc59116f.c +++ b/driver/led/tlc59116f.c @@ -2,8 +2,6 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ -#include <string.h> - #include "common.h" #include "console.h" #include "i2c.h" @@ -11,6 +9,8 @@ #include "stddef.h" #include "tlc59116f.h" +#include <string.h> + #define CPRINTF(fmt, args...) cprintf(CC_RGBKBD, "TLC59116F: " fmt, ##args) #define CPRINTS(fmt, args...) cprints(CC_RGBKBD, "TLC59116F: " fmt, ##args) |