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>
This commit is contained in:
parent
419bfbc1f1
commit
374b937a25
|
@ -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__ */
|
||||
|
||||
|
|
Loading…
Reference in New Issue