summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-06-23 10:31:06 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-06-23 15:15:10 -0700
commit3d74ba28649814ced21d51f8455c47f4ce981476 (patch)
tree1ca3f1c4ec9b718e2bb485f64ea9b5e6b0a956a8 /include
parent4d37fe58bbbe3349db3b828ce1a1f7ac282b710a (diff)
downloadchrome-ec-3d74ba28649814ced21d51f8455c47f4ce981476.tar.gz
ec_commands: Be sure all C code is within #ifnef ACPI
When __ACPI__ is set, only #define are allowed. BRANCH=none BUG=chrome-os-partner:52433 TEST=Coreboot compiles with this code. Change-Id: Iadb3893960f16ff49aa4f4e5871d5d17cbb87642 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/355570 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/ec_commands.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 66c8f61077..226d3bf04f 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -3649,8 +3649,6 @@ struct ec_params_pd_write_log_entry {
uint8_t port; /* port#, or 0 for events unrelated to a given port */
} __packed;
-#endif /* !__ACPI__ */
-
/* Control USB-PD chip */
#define EC_CMD_PD_CONTROL 0x119
@@ -3667,6 +3665,8 @@ struct ec_params_pd_control {
uint8_t subcmd;
} __packed;
+#endif /* !__ACPI__ */
+
/*****************************************************************************/
/*
* Blob commands are just opaque chunks of data, sent with proto v3.