diff options
author | Jan Dabros <jsd@semihalf.com> | 2020-05-14 23:45:47 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-26 09:55:49 +0000 |
commit | 5dd7dbac5565e09bee7e01ecd9404bffa7c85ea5 (patch) | |
tree | 85dcbd2f967fa609b643834559bf63616f7b88f0 /driver | |
parent | 436760fb09bfb7bc6c3f48c4b3c211285cb8977b (diff) | |
download | chrome-ec-5dd7dbac5565e09bee7e01ecd9404bffa7c85ea5.tar.gz |
USB: Fix handling of CONFIG_COMMON_RUNTIME
Fix compilation error when building with CONFIG_COMMON_RUNTIME disabled.
BUG=none
BRANCH=none
TEST=make buildall succeeds
Signed-off-by: Jan Dabros <jsd@semihalf.com>
Change-Id: I19b4f620588a393f01ae97a3997d3fe6dd1cc009
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2203064
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/usb_mux/usb_mux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/usb_mux/usb_mux.c b/driver/usb_mux/usb_mux.c index 3d629a6ab0..ec12df82f1 100644 --- a/driver/usb_mux/usb_mux.c +++ b/driver/usb_mux/usb_mux.c @@ -12,8 +12,13 @@ #include "usbc_ppc.h" #include "util.h" +#ifdef CONFIG_COMMON_RUNTIME #define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args) #define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ## args) +#else +#define CPRINTS(format, args...) +#define CPRINTF(format, args...) +#endif static int enable_debug_prints; |