summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-02-13 11:51:14 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-18 04:52:56 +0000
commitaaa76256819c4a961073be3955fcc1668fa9e346 (patch)
tree38602a0ce57430a824811eb2d1492b4b57534eba /common
parent4b774f07d3004e8af0c4e825e0495768d29cabf9 (diff)
downloadchrome-ec-aaa76256819c4a961073be3955fcc1668fa9e346.tar.gz
samus: disable i2cscan console command to save space
Disable the i2cscan console command by default to save space BUG=none BRANCH=samus TEST=make -j buildall From .map file, 512 bytes of flash saved Change-Id: I4bcb50b00e843abbc3523a3e0d4cc599a1e01d3a Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/249850 Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/i2c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/i2c.c b/common/i2c.c
index d423dffc25..da751c70ed 100644
--- a/common/i2c.c
+++ b/common/i2c.c
@@ -570,6 +570,7 @@ DECLARE_HOST_COMMAND(EC_CMD_I2C_PASSTHRU, i2c_command_passthru, EC_VER_MASK(0));
/*****************************************************************************/
/* Console commands */
+#ifdef CONFIG_CMD_I2C_SCAN
static void scan_bus(int port, const char *desc)
{
int a;
@@ -624,6 +625,7 @@ DECLARE_CONSOLE_COMMAND(i2cscan, command_scan,
NULL,
"Scan I2C ports for devices",
NULL);
+#endif
static int command_i2cxfer(int argc, char **argv)
{