diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-11-18 15:49:50 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-21 21:12:44 +0000 |
commit | 9ff48ff131b44af163190aca38673a952652f90d (patch) | |
tree | b8da3bfc80f54a74770117abf30a2e870e75b463 /zephyr/program/nissa/yaviks | |
parent | 8f334860cd7bc8ceb7cf4e5c25b29a0d2754ac2e (diff) | |
download | chrome-ec-9ff48ff131b44af163190aca38673a952652f90d.tar.gz |
zephyr/program: Sort header files
Sort all headers in zephyr/test 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: Ibd81df9a27fc0c934b4134106d6f09487439c245
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4039149
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/program/nissa/yaviks')
-rw-r--r-- | zephyr/program/nissa/yaviks/src/charger.c | 8 | ||||
-rw-r--r-- | zephyr/program/nissa/yaviks/src/fan.c | 7 | ||||
-rw-r--r-- | zephyr/program/nissa/yaviks/src/keyboard.c | 4 | ||||
-rw-r--r-- | zephyr/program/nissa/yaviks/src/led.c | 6 | ||||
-rw-r--r-- | zephyr/program/nissa/yaviks/src/thermal.c | 3 | ||||
-rw-r--r-- | zephyr/program/nissa/yaviks/src/usbc.c | 14 |
6 files changed, 22 insertions, 20 deletions
diff --git a/zephyr/program/nissa/yaviks/src/charger.c b/zephyr/program/nissa/yaviks/src/charger.c index 9be2e685b0..ec2247f4b4 100644 --- a/zephyr/program/nissa/yaviks/src/charger.c +++ b/zephyr/program/nissa/yaviks/src/charger.c @@ -3,16 +3,16 @@ * found in the LICENSE file. */ -#include <zephyr/logging/log.h> - #include "battery.h" +#include "battery_fuel_gauge.h" #include "charger.h" #include "console.h" #include "driver/charger/sm5803.h" #include "extpower.h" -#include "usb_pd.h" #include "nissa_common.h" -#include "battery_fuel_gauge.h" +#include "usb_pd.h" + +#include <zephyr/logging/log.h> LOG_MODULE_DECLARE(nissa, CONFIG_NISSA_LOG_LEVEL); diff --git a/zephyr/program/nissa/yaviks/src/fan.c b/zephyr/program/nissa/yaviks/src/fan.c index 23c3ec1143..c01ee3d752 100644 --- a/zephyr/program/nissa/yaviks/src/fan.c +++ b/zephyr/program/nissa/yaviks/src/fan.c @@ -2,14 +2,15 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ -#include <zephyr/devicetree.h> -#include <zephyr/drivers/gpio.h> -#include <zephyr/logging/log.h> #include "cros_cbi.h" #include "fan.h" #include "gpio/gpio.h" #include "hooks.h" #include "nissa_common.h" + +#include <zephyr/devicetree.h> +#include <zephyr/drivers/gpio.h> +#include <zephyr/logging/log.h> LOG_MODULE_DECLARE(nissa, CONFIG_NISSA_LOG_LEVEL); static void fan_init(void) diff --git a/zephyr/program/nissa/yaviks/src/keyboard.c b/zephyr/program/nissa/yaviks/src/keyboard.c index 46d6083dbf..54f8750e98 100644 --- a/zephyr/program/nissa/yaviks/src/keyboard.c +++ b/zephyr/program/nissa/yaviks/src/keyboard.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 <zephyr/logging/log.h> - #include "cros_cbi.h" #include "ec_commands.h" #include "hooks.h" @@ -11,6 +9,8 @@ #include "keyboard_scan.h" #include "timer.h" +#include <zephyr/logging/log.h> + LOG_MODULE_DECLARE(nissa, CONFIG_NISSA_LOG_LEVEL); /* Keyboard scan setting */ diff --git a/zephyr/program/nissa/yaviks/src/led.c b/zephyr/program/nissa/yaviks/src/led.c index 88a476f1b0..7671bd3a92 100644 --- a/zephyr/program/nissa/yaviks/src/led.c +++ b/zephyr/program/nissa/yaviks/src/led.c @@ -3,17 +3,17 @@ * found in the LICENSE file. */ -#include <stdint.h> - #include "battery.h" #include "charge_manager.h" #include "charge_state.h" #include "chipset.h" #include "ec_commands.h" #include "gpio.h" +#include "hooks.h" #include "host_command.h" #include "led_common.h" -#include "hooks.h" + +#include <stdint.h> #define BAT_LED_ON 0 #define BAT_LED_OFF 1 diff --git a/zephyr/program/nissa/yaviks/src/thermal.c b/zephyr/program/nissa/yaviks/src/thermal.c index 43b30f0497..4522f8bd09 100644 --- a/zephyr/program/nissa/yaviks/src/thermal.c +++ b/zephyr/program/nissa/yaviks/src/thermal.c @@ -3,13 +3,14 @@ * found in the LICENSE file. */ -#include <ap_power/ap_power_interface.h> #include "common.h" #include "fan.h" #include "temp_sensor/temp_sensor.h" #include "thermal.h" #include "util.h" +#include <ap_power/ap_power_interface.h> + #define TEMP_CPU TEMP_SENSOR_ID(DT_NODELABEL(temp_cpu)) #define TEMP_5V TEMP_SENSOR_ID(DT_NODELABEL(temp_5v_regulator)) #define TEMP_CHARGER TEMP_SENSOR_ID(DT_NODELABEL(temp_charger)) diff --git a/zephyr/program/nissa/yaviks/src/usbc.c b/zephyr/program/nissa/yaviks/src/usbc.c index 48f7cfd9cb..01e48e79e0 100644 --- a/zephyr/program/nissa/yaviks/src/usbc.c +++ b/zephyr/program/nissa/yaviks/src/usbc.c @@ -3,20 +3,20 @@ * found in the LICENSE file. */ -#include <zephyr/logging/log.h> -#include <ap_power/ap_power.h> - #include "charge_state_v2.h" #include "chipset.h" -#include "hooks.h" -#include "usb_mux.h" -#include "system.h" #include "driver/charger/sm5803.h" #include "driver/tcpm/it83xx_pd.h" #include "driver/tcpm/ps8xxx_public.h" #include "driver/tcpm/tcpci.h" - +#include "hooks.h" #include "nissa_common.h" +#include "system.h" +#include "usb_mux.h" + +#include <zephyr/logging/log.h> + +#include <ap_power/ap_power.h> LOG_MODULE_DECLARE(nissa, CONFIG_NISSA_LOG_LEVEL); |