diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-03-04 12:24:33 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-06 03:50:43 +0000 |
commit | 7cbc5a0186d8d5fc36e2f54a0a7020354c8e00d7 (patch) | |
tree | 07458ebee6c63e9ef74eaeadad51b9a03e8d6165 /common/i2c.c | |
parent | 4fe8e91fdefc9a4afb466c00cd4a08ccbd93485a (diff) | |
download | chrome-ec-7cbc5a0186d8d5fc36e2f54a0a7020354c8e00d7.tar.gz |
samus_pd: disable i2cxfer console command to save space
Disable the i2cxfer console command by default to save space
BUG=chrome-os-partner:37167
BRANCH=samus
TEST=make -j buildall
From .map file, 576 bytes of flash saved
Change-Id: I0b50161ef0a49231e45c422da5042db77874aed1
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/256071
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'common/i2c.c')
-rw-r--r-- | common/i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/i2c.c b/common/i2c.c index da751c70ed..05d7f1a703 100644 --- a/common/i2c.c +++ b/common/i2c.c @@ -627,6 +627,7 @@ DECLARE_CONSOLE_COMMAND(i2cscan, command_scan, NULL); #endif +#ifdef CONFIG_CMD_I2C_XFER static int command_i2cxfer(int argc, char **argv) { int port, slave_addr; @@ -706,3 +707,4 @@ DECLARE_CONSOLE_COMMAND(i2cxfer, command_i2cxfer, "r/r16/rlen/w/w16 port addr offset [value | len]", "Read write I2C", NULL); +#endif |