summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-02-11 15:46:24 -0700
committerCommit Bot <commit-bot@chromium.org>2022-02-25 21:09:05 +0000
commit3ec94000fb8b9d1428e217f2e7d5ac63764e13de (patch)
treee98a9b4d6f30d0d352658bc354f38df7f190bba2
parent9877be7ea518130372b6524898c950f2065e0304 (diff)
downloadchrome-ec-3ec94000fb8b9d1428e217f2e7d5ac63764e13de.tar.gz
gpio: cleanup header usage for keyboard
keyboard_raw.h only requires the enum gpio_signal, so use gpio_signal.h instead of gpio.h. BUG=b:218856245 BRANCH=none TEST=compare_build.sh Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Id9e6939323f6d6433dd7cc4899df5e748720561f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3489095 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--board/palkia/keyboard_customization.c1
-rw-r--r--include/keyboard_raw.h2
-rw-r--r--zephyr/shim/chip/npcx/keyboard_raw.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/board/palkia/keyboard_customization.c b/board/palkia/keyboard_customization.c
index 706ad18a4e..b39bf09f08 100644
--- a/board/palkia/keyboard_customization.c
+++ b/board/palkia/keyboard_customization.c
@@ -4,6 +4,7 @@
*/
#include "common.h"
+#include "gpio.h"
#include "keyboard_customization.h"
#include "keyboard_8042_sharedlib.h"
#include "keyboard_config.h"
diff --git a/include/keyboard_raw.h b/include/keyboard_raw.h
index 6c8ecc3b2a..6989ae36a7 100644
--- a/include/keyboard_raw.h
+++ b/include/keyboard_raw.h
@@ -13,7 +13,7 @@
#include "assert.h"
#include "common.h"
-#include "gpio.h"
+#include "gpio_signal.h"
#include "keyboard_config.h"
/* Column values for keyboard_raw_drive_column() */
diff --git a/zephyr/shim/chip/npcx/keyboard_raw.c b/zephyr/shim/chip/npcx/keyboard_raw.c
index aa075d2d56..0309839ad6 100644
--- a/zephyr/shim/chip/npcx/keyboard_raw.c
+++ b/zephyr/shim/chip/npcx/keyboard_raw.c
@@ -6,6 +6,7 @@
/* Functions needed by keyboard scanner module for Chrome EC */
#include <device.h>
+#include <drivers/gpio.h>
#include <logging/log.h>
#include <soc.h>
#include <soc_gpio.h>