summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-09-21 16:30:15 -0700
committerCommit Bot <commit-bot@chromium.org>2021-09-24 22:34:25 +0000
commitd4938b281fede972db577180efb791a47c47140b (patch)
tree0ce9736718d0d9ca7525afbce2f7184996b366f7
parent87798ac80d69e1ec173c94eaa76e4a142cb16ad6 (diff)
downloadchrome-ec-d4938b281fede972db577180efb791a47c47140b.tar.gz
COIL: ectool: Update terminology
BRANCH=none BUG=b:163885307 TEST=buildall passes Change-Id: I8b5524341e02dbbedbd0f8e7a3b82352aef4091f Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3181500 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--util/ectool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/ectool.c b/util/ectool.c
index 79e496f262..c4a3401d59 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -186,7 +186,7 @@ const char help_str[] =
" Read I2C bus\n"
" i2cwrite\n"
" Write I2C bus\n"
- " i2cxfer <port> <slave_addr> <read_count> [write bytes...]\n"
+ " i2cxfer <port> <peripheral_addr> <read_count> [write bytes...]\n"
" Perform I2C transfer on EC's I2C bus\n"
" infopddev <port>\n"
" Get info about USB type-C accessory attached to port\n"
@@ -858,7 +858,7 @@ static const char * const ec_feature_names[] = {
[EC_FEATURE_WIFI_SWITCH] = "Switch wifi on/off",
[EC_FEATURE_HOST_EVENTS] = "Host event",
[EC_FEATURE_GPIO] = "GPIO",
- [EC_FEATURE_I2C] = "I2C master",
+ [EC_FEATURE_I2C] = "I2C controller",
[EC_FEATURE_CHARGER] = "Charger",
[EC_FEATURE_BATTERY] = "Simple Battery",
[EC_FEATURE_SMART_BATTERY] = "Smart Battery",
@@ -7303,7 +7303,7 @@ int cmd_i2c_xfer(int argc, char *argv[])
addr = strtol(argv[2], &e, 0) & 0x7f;
if (e && *e) {
- fprintf(stderr, "Bad slave address.\n");
+ fprintf(stderr, "Bad peripheral address.\n");
return -1;
}