summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2022-11-14 14:51:41 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-14 23:27:54 +0000
commit9d21e1334139db03bc68a560bf1814bc5ac4bcde (patch)
tree4006dbd9704ec86a4338c2b789b9a95d220cd630
parent425d70135bec0590518292cb1fdf83012c57986e (diff)
downloadchrome-ec-9d21e1334139db03bc68a560bf1814bc5ac4bcde.tar.gz
ec: IWYU Add some missing includes
Add headers for types that are used in these headers. BRANCH=None BUG=b:247100970 TEST=CQ Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I184a7d31e8cb7e14391f0c610296884d7d124600 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4024015 Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/fan.h2
-rw-r--r--include/hwtimer.h2
-rw-r--r--zephyr/shim/include/gpio/gpio.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/include/fan.h b/include/fan.h
index cefb4c0dba..7c64f4e31b 100644
--- a/include/fan.h
+++ b/include/fan.h
@@ -8,6 +8,8 @@
#ifndef __CROS_EC_FAN_H
#define __CROS_EC_FAN_H
+#include "config.h"
+
#include <stdint.h>
#ifdef CONFIG_ZEPHYR
diff --git a/include/hwtimer.h b/include/hwtimer.h
index 093a44cad1..9058563e7a 100644
--- a/include/hwtimer.h
+++ b/include/hwtimer.h
@@ -8,6 +8,8 @@
#ifndef __CROS_EC_HWTIMER_H
#define __CROS_EC_HWTIMER_H
+#include <stdint.h>
+
/**
* Programs when the next timer should fire an interrupt.
*
diff --git a/zephyr/shim/include/gpio/gpio.h b/zephyr/shim/include/gpio/gpio.h
index 7d41c0fa02..fbe57729fe 100644
--- a/zephyr/shim/include/gpio/gpio.h
+++ b/zephyr/shim/include/gpio/gpio.h
@@ -8,6 +8,7 @@
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
+#include <zephyr/drivers/gpio.h>
/*
* Validate interrupt flags are valid for the Zephyr GPIO driver.