diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2014-09-09 12:00:49 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-09-14 09:52:11 +0000 |
commit | fab7ac3b9a5cc26927b8a40bbbba8049d64b323b (patch) | |
tree | 446e8aa1034f2f89a7c6fc248f918b308e6b5f46 /util/comm-host.h | |
parent | 9452186389651b83cee6731567f8f50776e0f19b (diff) | |
download | chrome-ec-fab7ac3b9a5cc26927b8a40bbbba8049d64b323b.tar.gz |
ectool: add new parameter to identify proper EC.
Add parameter name to identify which EC to talk to.
Superseed --dev parameter, removed soon.
--name cros_ec (the default): send commands to /dev/cros_ec.
--name cros_pd: send commands to /dev/cros_pd.
...
BUG=chrome-os-partner:31513
TEST=Tested on samus:
check ectool --name cros_pd version returns proper data:
ectool --name=cros_pd version
RO version: samus_pd_v1.1.2079-8e4f9fc-dirt
....
CQ-DEPEND=CL:217297
BRANCH=ToT
Change-Id: Ie8b5c6c184d73a89b4445e88d6f104169176b9f3
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/217311
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'util/comm-host.h')
-rw-r--r-- | util/comm-host.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/comm-host.h b/util/comm-host.h index 30c6acee67..3477661c19 100644 --- a/util/comm-host.h +++ b/util/comm-host.h @@ -37,9 +37,10 @@ enum comm_interface { * Perform initializations needed for subsequent requests * * @param interfaces Interfaces to try; use COMM_ALL to try all of them. + * @param device_name For DEV option, the device file to use. * @return 0 in case of success, or error code. */ -int comm_init(int interfaces); +int comm_init(int interfaces, const char *device_name); /** * Send a command to the EC. Returns the length of output data returned (0 if |