summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2023-02-10 11:27:54 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-14 00:16:08 +0000
commit40018f3b5d717783ff0f2258498626fcb8cfabbf (patch)
tree64cf39597d8a31c29e724a3c920ff89d5a917d14 /board
parent8ca233c5c35e956cb9a9a1ea47de81a427582a27 (diff)
downloadchrome-ec-40018f3b5d717783ff0f2258498626fcb8cfabbf.tar.gz
brask: move externs to header file
During pre-upload check, it will show warning that "externs should be avoided in .c files". BUG=b:268581418 BRANCH=none TEST=make buildall Change-Id: I973390da06bf6594212391bf48d6940f4ac29a07 Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4238096 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/brask/board.c2
-rw-r--r--board/constitution/board.c2
-rw-r--r--board/kuldax/board.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/board/brask/board.c b/board/brask/board.c
index 19753765c2..758b0bb7ab 100644
--- a/board/brask/board.c
+++ b/board/brask/board.c
@@ -12,6 +12,7 @@
#include "console.h"
#include "cros_board_info.h"
#include "driver/tcpm/tcpci.h"
+#include "driver/wpc/cps8100.h"
#include "fw_config.h"
#include "gpio.h"
#include "gpio_signal.h"
@@ -41,7 +42,6 @@ const int usb_port_enable[USB_PORT_COUNT] = {
};
BUILD_ASSERT(ARRAY_SIZE(usb_port_enable) == USB_PORT_COUNT);
-extern struct pchg_drv cps8100_drv;
struct pchg pchgs[] = {
[0] = {
.cfg = &(const struct pchg_config) {
diff --git a/board/constitution/board.c b/board/constitution/board.c
index 8ac2e7ac72..003229b593 100644
--- a/board/constitution/board.c
+++ b/board/constitution/board.c
@@ -12,6 +12,7 @@
#include "console.h"
#include "cros_board_info.h"
#include "driver/tcpm/tcpci.h"
+#include "driver/wpc/cps8100.h"
#include "fw_config.h"
#include "gpio.h"
#include "gpio_signal.h"
@@ -41,7 +42,6 @@ const int usb_port_enable[USB_PORT_COUNT] = {
};
BUILD_ASSERT(ARRAY_SIZE(usb_port_enable) == USB_PORT_COUNT);
-extern struct pchg_drv cps8100_drv;
struct pchg pchgs[] = {
[0] = {
.cfg = &(const struct pchg_config) {
diff --git a/board/kuldax/board.c b/board/kuldax/board.c
index 922a7a3a75..209e08301e 100644
--- a/board/kuldax/board.c
+++ b/board/kuldax/board.c
@@ -12,6 +12,7 @@
#include "console.h"
#include "cros_board_info.h"
#include "driver/tcpm/tcpci.h"
+#include "driver/wpc/cps8100.h"
#include "fw_config.h"
#include "gpio.h"
#include "gpio_signal.h"
@@ -41,7 +42,6 @@ const int usb_port_enable[USB_PORT_COUNT] = {
};
BUILD_ASSERT(ARRAY_SIZE(usb_port_enable) == USB_PORT_COUNT);
-extern struct pchg_drv cps8100_drv;
struct pchg pchgs[] = {
[0] = {
.cfg = &(const struct pchg_config) {