From 7188b6f4134624c7158cc81ff1c59df590761761 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Mon, 13 May 2013 13:05:54 -0700 Subject: Tidy comments for I2C passthru message No code changes; just fix a few comments. BUG=chrome-os-partner:18778 BRANCH=none TEST=build code Change-Id: I7ed32b5af01a6dbd401334175b5a1b5b4786cac7 Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/51017 Reviewed-by: Doug Anderson --- include/ec_commands.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ec_commands.h b/include/ec_commands.h index 56df6291d4..4f226f7abf 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1275,20 +1275,20 @@ struct ec_response_power_info { struct ec_params_i2c_passthru_msg { uint16_t addr_flags; /* I2C slave address (7 or 10 bits) and flags */ - uint16_t len; /* Number of bytes to write*/ + uint16_t len; /* Number of bytes to read or write */ } __packed; struct ec_params_i2c_passthru { uint8_t port; /* I2C port number */ uint8_t num_msgs; /* Number of messages */ struct ec_params_i2c_passthru_msg msg[]; - /* Data for all messages is concatenated here */ + /* Data to write for all messages is concatenated here */ } __packed; struct ec_response_i2c_passthru { uint8_t i2c_status; /* Status flags (EC_I2C_STATUS_...) */ uint8_t num_msgs; /* Number of messages processed */ - uint8_t data[]; /* Data for all messages concatenated here */ + uint8_t data[]; /* Data read by messages concatenated here */ } __packed; -- cgit v1.2.1