diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-06-06 12:42:10 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-06 21:19:14 -0700 |
commit | 3073c600786c6170cb3ff4d05ebc917f154c4ec1 (patch) | |
tree | 4d985b10f545cf29e3411a232cee9a9d2117781c | |
parent | d053605d943134ed718705eea9af8e20ab1b2dcf (diff) | |
download | chrome-ec-3073c600786c6170cb3ff4d05ebc917f154c4ec1.tar.gz |
Flash host command functions should be static
Since they're not used outside of this source file.
BUG=none
TEST=if it builds, it worked
Change-Id: I92c13c7d58e0e6977c2696746c9d95cbdcb6dbd5
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/24638
Reviewed-by: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>
-rw-r--r-- | common/flash_commands.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/common/flash_commands.c b/common/flash_commands.c index cfae2124a3..c8e13c340c 100644 --- a/common/flash_commands.c +++ b/common/flash_commands.c @@ -188,7 +188,7 @@ DECLARE_CONSOLE_COMMAND(flashwp, command_flash_wp, /*****************************************************************************/ /* Host commands */ -int flash_command_get_info(uint8_t *data, int *resp_size) +static int flash_command_get_info(uint8_t *data, int *resp_size) { struct ec_response_flash_info *r = (struct ec_response_flash_info *)data; @@ -204,7 +204,7 @@ DECLARE_HOST_COMMAND(EC_CMD_FLASH_INFO, flash_command_get_info); #ifdef SUPPORT_CHECKSUM -int flash_command_checksum(uint8_t *data, int *resp_size) +static int flash_command_checksum(uint8_t *data, int *resp_size) { struct ec_params_flash_checksum *p = (struct ec_params_flash_checksum *)data; @@ -228,7 +228,7 @@ DECLARE_HOST_COMMAND(EC_CMD_FLASH_CHECKSUM, flash_command_checksum); #endif -int flash_command_read(uint8_t *data, int *resp_size) +static int flash_command_read(uint8_t *data, int *resp_size) { struct ec_params_flash_read *p = (struct ec_params_flash_read *)data; @@ -247,7 +247,7 @@ int flash_command_read(uint8_t *data, int *resp_size) DECLARE_HOST_COMMAND(EC_CMD_FLASH_READ, flash_command_read); -int flash_command_write(uint8_t *data, int *resp_size) +static int flash_command_write(uint8_t *data, int *resp_size) { struct ec_params_flash_write *p = (struct ec_params_flash_write *)data; @@ -266,7 +266,7 @@ int flash_command_write(uint8_t *data, int *resp_size) DECLARE_HOST_COMMAND(EC_CMD_FLASH_WRITE, flash_command_write); -int flash_command_erase(uint8_t *data, int *resp_size) +static int flash_command_erase(uint8_t *data, int *resp_size) { struct ec_params_flash_erase *p = (struct ec_params_flash_erase *)data; @@ -282,7 +282,7 @@ int flash_command_erase(uint8_t *data, int *resp_size) DECLARE_HOST_COMMAND(EC_CMD_FLASH_ERASE, flash_command_erase); -int flash_command_wp_enable(uint8_t *data, int *resp_size) +static int flash_command_wp_enable(uint8_t *data, int *resp_size) { struct ec_params_flash_wp_enable *p = (struct ec_params_flash_wp_enable *)data; @@ -293,7 +293,7 @@ DECLARE_HOST_COMMAND(EC_CMD_FLASH_WP_ENABLE, flash_command_wp_enable); -int flash_command_wp_get_state(uint8_t *data, int *resp_size) +static int flash_command_wp_get_state(uint8_t *data, int *resp_size) { struct ec_response_flash_wp_enable *p = (struct ec_response_flash_wp_enable *)data; @@ -310,7 +310,7 @@ DECLARE_HOST_COMMAND(EC_CMD_FLASH_WP_GET_STATE, flash_command_wp_get_state); -int flash_command_wp_set_range(uint8_t *data, int *resp_size) +static int flash_command_wp_set_range(uint8_t *data, int *resp_size) { struct ec_params_flash_wp_range *p = (struct ec_params_flash_wp_range *)data; @@ -327,7 +327,7 @@ DECLARE_HOST_COMMAND(EC_CMD_FLASH_WP_SET_RANGE, flash_command_wp_set_range); -int flash_command_wp_get_range(uint8_t *data, int *resp_size) +static int flash_command_wp_get_range(uint8_t *data, int *resp_size) { struct ec_response_flash_wp_range *p = (struct ec_response_flash_wp_range *)data; |