summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-10-10 14:00:21 -0700
committerFurquan Shaikh <furquan@google.com>2018-10-11 23:58:03 +0000
commit374b937a2550dd2480e1cb416714b16a877c86d8 (patch)
treed0cb0ef9f8e52501ae36f052e32ecb38dc1379fd /src
parent419bfbc1f1e7bb40c1e5698e1f50d4e275665d97 (diff)
downloadcoreboot-374b937a2550dd2480e1cb416714b16a877c86d8.tar.xz
ec/google/chromeec: Get rid of __SMM__ guard for chromeec functions
There doesn't seem to be a reason why we would want to protect certain chromeec functions with __SMM__ guard. So, this change gets rid of it. If the functions remain unused, then they would be removed during linking. Change-Id: I8196406074b01fe8ea15173c55d45bb86384be1b Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/29006 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Enrico Granata <egranata@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/ec/google/chromeec/ec.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c
index 90fcc3d96c..75d9da16e2 100644
--- a/src/ec/google/chromeec/ec.c
+++ b/src/ec/google/chromeec/ec.c
@@ -636,7 +636,6 @@ int google_chromeec_cbi_get_dram_part_num(char *buf, size_t bufsize)
return 0;
}
-#ifndef __SMM__
int google_chromeec_get_board_version(uint32_t *version)
{
struct chromeec_command cmd;
@@ -713,8 +712,6 @@ retry:
return cec_cmd.cmd_code;
}
-#endif /* ! __SMM__ */
-
#ifndef __PRE_RAM__
int google_chromeec_i2c_xfer(uint8_t chip, uint8_t addr, int alen,
@@ -920,8 +917,6 @@ int google_chromeec_set_usb_pd_role(u8 port, enum usb_pd_control_role role)
return google_chromeec_command(&cmd);
}
-#ifndef __SMM__
-
static int google_chromeec_hello(void)
{
struct chromeec_command cec_cmd;
@@ -1106,7 +1101,6 @@ int google_ec_running_ro(void)
{
return (ec_image_type == EC_IMAGE_RO);
}
-#endif /* ! __SMM__ */
#endif /* ! __PRE_RAM__ */