summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2022-11-23 14:40:36 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-24 22:02:07 +0000
commit24b03d2cb6ee957cebbfb835445fa5c6437c7f0e (patch)
treed4cf9ebcf97673a48dbbbd5a7f75acc0914f3c90 /chip
parentd4be8d3fbb61a50b0a22d56d618db54f1c36ef55 (diff)
downloadchrome-ec-24b03d2cb6ee957cebbfb835445fa5c6437c7f0e.tar.gz
ec: IWYU Add missing includes
Add "chip/stm32/usb_hw.h" for usb_uint Add <stddef.h> for size_t Switch from board.h to config.h BRANCH=None BUG=b:247100970 TEST=zmake build -a TEST=./twister --clobber -v -i TEST=make -j72 buildall_only runtests TEST=zmake compare-builds Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I8d6c7cb89cd54812b90afd9ec06d81f8122fbdc7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4053345 Reviewed-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'chip')
-rw-r--r--chip/ish/ipc_heci.h2
-rw-r--r--chip/max32660/wdt_chip.c2
-rw-r--r--chip/stm32/usb_hid_hw.h2
3 files changed, 5 insertions, 1 deletions
diff --git a/chip/ish/ipc_heci.h b/chip/ish/ipc_heci.h
index f9372aefa3..96b08f9c4a 100644
--- a/chip/ish/ipc_heci.h
+++ b/chip/ish/ipc_heci.h
@@ -7,6 +7,8 @@
#ifndef __IPC_HECI_H
#define __IPC_HECI_H
+#include <stddef.h>
+
enum IPC_ERR {
IPC_ERR_IPC_IS_NOT_READY = EC_ERROR_INTERNAL_FIRST + 0,
IPC_ERR_TOO_SMALL_BUFFER = EC_ERROR_INTERNAL_FIRST + 1,
diff --git a/chip/max32660/wdt_chip.c b/chip/max32660/wdt_chip.c
index 03cd2bd009..af9a5d2ef4 100644
--- a/chip/max32660/wdt_chip.c
+++ b/chip/max32660/wdt_chip.c
@@ -7,6 +7,7 @@
#include "clock.h"
#include "common.h"
+#include "config.h"
#include "gpio.h"
#include "hooks.h"
#include "task.h"
@@ -14,7 +15,6 @@
#include "watchdog.h"
#include "console.h"
#include "registers.h"
-#include "board.h"
#include "wdt_regs.h"
#define CPUTS(outstr) cputs(CC_COMMAND, outstr)
diff --git a/chip/stm32/usb_hid_hw.h b/chip/stm32/usb_hid_hw.h
index 54bfca0808..5e28a801c1 100644
--- a/chip/stm32/usb_hid_hw.h
+++ b/chip/stm32/usb_hid_hw.h
@@ -8,6 +8,8 @@
#ifndef __CROS_EC_USB_HID_HW_H
#define __CROS_EC_USB_HID_HW_H
+#include "chip/stm32/usb_hw.h"
+
#include <common.h>
struct usb_hid_config_t {