summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Huang <alan-huang@quanta.corp-partner.google.com>2021-11-02 10:26:02 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-11-03 08:24:15 +0000
commit5826c591bf2dabe02fda91afde293c4194b4007a (patch)
tree81f3011132ab0510ec201c077844412f1212d703
parent940953e823efb389738c05af2b1110d6bd953cdb (diff)
device/include: Fix potential build error
Add include guard for usbc_mux.h BUG=none BRANCH=none TEST=Build Pass Signed-off-by: Alan Huang <alan-huang@quanta.corp-partner.google.com> Change-Id: I47988edee84d17f0a15cfda1ac6f0187326bd331 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58832 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
-rw-r--r--src/include/device/usbc_mux.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/device/usbc_mux.h b/src/include/device/usbc_mux.h
index e395d2dd62..0648a74f66 100644
--- a/src/include/device/usbc_mux.h
+++ b/src/include/device/usbc_mux.h
@@ -1,5 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef __USBC_MUX_H__
+#define __USBC_MUX_H__
+
/* struct to hold all USB-C mux related variables */
struct usbc_mux_info {
bool dp; /* DP connected */
@@ -67,3 +70,5 @@ struct usbc_ops {
};
const struct usbc_ops *usbc_get_ops(void);
+
+#endif /* __USBC_MUX_H__ */