From 3d74ba28649814ced21d51f8455c47f4ce981476 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Thu, 23 Jun 2016 10:31:06 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/355570 Reviewed-by: Randall Spangler Reviewed-by: Duncan Laurie --- include/ec_commands.h | 4 ++-- 1 file 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. -- cgit v1.2.1