From e6da633c3840a90479a01224fcde04135408c787 Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Wed, 23 Nov 2022 13:51:53 -0700 Subject: 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 Change-Id: I675e0db416b6b7cbcfce031c97fd24ad97b66f4f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4052767 Reviewed-by: Yuval Peress Commit-Queue: Jeremy Bettis Code-Coverage: Zoss Tested-by: Jeremy Bettis Reviewed-by: Tom Hughes --- driver/led/aw20198.c | 4 ++-- driver/led/is31fl3733b.c | 3 ++- driver/led/is31fl3743b.c | 4 ++-- driver/led/mp3385.h | 2 +- driver/led/oz554.h | 2 +- driver/led/tlc59116f.c | 4 ++-- 6 files changed, 10 insertions(+), 9 deletions(-) (limited to 'driver/led') 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 - #include "aw20198.h" #include "common.h" #include "console.h" @@ -13,6 +11,8 @@ #include "stddef.h" #include "timer.h" +#include + #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 #include "common.h" #include "console.h" #include "gpio.h" @@ -11,6 +10,8 @@ #include "stddef.h" #include "timer.h" +#include + #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 - #include "common.h" #include "console.h" #include "gpio.h" @@ -12,6 +10,8 @@ #include "stddef.h" #include "timer.h" +#include + #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 - #include "common.h" #include "console.h" #include "i2c.h" @@ -11,6 +9,8 @@ #include "stddef.h" #include "tlc59116f.h" +#include + #define CPRINTF(fmt, args...) cprintf(CC_RGBKBD, "TLC59116F: " fmt, ##args) #define CPRINTS(fmt, args...) cprints(CC_RGBKBD, "TLC59116F: " fmt, ##args) -- cgit v1.2.1