summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-05-05 15:29:13 -0700
committerCommit Bot <commit-bot@chromium.org>2021-05-06 00:01:33 +0000
commit30b6aea0a17d71049098aec236ea6a11b8145a53 (patch)
tree047ded137878b5a5c7688b9667aa33d58fe9c36a
parent5ff6caffa46c4137d14375426cf8d7bd7187b424 (diff)
downloadchrome-ec-30b6aea0a17d71049098aec236ea6a11b8145a53.tar.gz
lazor: Fix compilation warning
It fixes the compilation warning: warning: implicit declaration of function 'board_is_clamshell'. BRANCH=None BUG=None TEST=Built Chromium EC and Zephyr EC. Checked no warning. Change-Id: I3278cd29853ff8882b36a32ed95fd0c81f0b8491 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2876172 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--board/lazor/board.c1
-rw-r--r--board/lazor/board.h2
-rw-r--r--board/lazor/hibernate.c1
-rw-r--r--board/lazor/sku.c1
-rw-r--r--board/lazor/sku.h13
5 files changed, 16 insertions, 2 deletions
diff --git a/board/lazor/board.c b/board/lazor/board.c
index 4ad8cf51fe..9b8a2c669d 100644
--- a/board/lazor/board.c
+++ b/board/lazor/board.c
@@ -25,6 +25,7 @@
#include "pwm_chip.h"
#include "system.h"
#include "shi_chip.h"
+#include "sku.h"
#include "switch.h"
#include "tablet_mode.h"
#include "task.h"
diff --git a/board/lazor/board.h b/board/lazor/board.h
index a18a92f095..3a1edee983 100644
--- a/board/lazor/board.h
+++ b/board/lazor/board.h
@@ -114,8 +114,6 @@ enum battery_type {
BATTERY_TYPE_COUNT,
};
-int board_is_clamshell(void);
-
/* Reset all TCPCs. */
void board_reset_pd_mcu(void);
void board_set_tcpc_power_mode(int port, int mode);
diff --git a/board/lazor/hibernate.c b/board/lazor/hibernate.c
index 2b9bfa44eb..1187348e31 100644
--- a/board/lazor/hibernate.c
+++ b/board/lazor/hibernate.c
@@ -4,6 +4,7 @@
*/
#include "common.h"
+#include "sku.h"
#include "system.h"
#include "usbc_ppc.h"
diff --git a/board/lazor/sku.c b/board/lazor/sku.c
index c7fe08fd87..fa271b5475 100644
--- a/board/lazor/sku.c
+++ b/board/lazor/sku.c
@@ -10,6 +10,7 @@
#include "tcpm/ps8xxx_public.h"
#include "gpio.h"
#include "hooks.h"
+#include "sku.h"
#include "system.h"
#define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args)
diff --git a/board/lazor/sku.h b/board/lazor/sku.h
new file mode 100644
index 0000000000..d37b502bd4
--- /dev/null
+++ b/board/lazor/sku.h
@@ -0,0 +1,13 @@
+/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Lazor board-specific SKU configuration */
+
+#ifndef __CROS_EC_SKU_H
+#define __CROS_EC_SKU_H
+
+int board_is_clamshell(void);
+
+#endif /* __CROS_EC_SKU_H */