pd: Remove pe dump command by default.

Marginally useful command being replaced by host command
in later patch (ectool --name cros_pd pdgetmode).

Hide behind config option CONFIG_CMD_USB_PD_PE.

Signed-off-by: Todd Broch <tbroch@chromium.org>

BRANCH=samus
BUG=chrome-os-partner:34489
TEST=compiles, command is gone and gain >700 bytes of flash.

Change-Id: I09deeb997744757a836438eb3217f9b432bdd11c
Reviewed-on: https://chromium-review.googlesource.com/236957
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
This commit is contained in:
Todd Broch
2014-12-19 11:07:39 -08:00
committed by chrome-internal-fetch
parent 29a57a037a
commit 89559b0d67
2 changed files with 3 additions and 0 deletions

View File

@@ -333,6 +333,7 @@ int pd_exit_mode(int port, uint32_t *payload)
return 1;
}
#ifdef CONFIG_CMD_USB_PD_PE
static void dump_pe(int port)
{
const char * const idh_ptype_names[] = {
@@ -398,6 +399,7 @@ DECLARE_CONSOLE_COMMAND(pe, command_pe,
"<port> dump",
"USB PE",
NULL);
#endif /* CONFIG_CMD_USB_PD_PE */
#endif /* CONFIG_USB_PD_ALT_MODE_DFP */

View File

@@ -336,6 +336,7 @@
#undef CONFIG_CMD_SPI_FLASH
#undef CONFIG_CMD_STACKOVERFLOW
#undef CONFIG_CMD_TASKREADY
#undef CONFIG_CMD_USB_PD_PE
/*****************************************************************************/