diff options
author | Tom Hughes <tomhughes@chromium.org> | 2021-04-30 17:03:18 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-03 21:40:33 +0000 |
commit | 190b5bbd4b89dbe561073226ae34a89e067e46e6 (patch) | |
tree | be3cfc4822d56c3d5ab83ed6ca287ef0fcde29b0 | |
parent | 967ae4603613fb65d989e441c5cd9b630f009a74 (diff) | |
download | chrome-ec-190b5bbd4b89dbe561073226ae34a89e067e46e6.tar.gz |
util/comm-i2c.c: Remove incorrect cast
buf is type "uint8_t *", not "char *".
BRANCH=none
BUG=b:144959033
TEST=make buildall
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I0e813069f164b08324844009cd64d470b7d35405
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2864516
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r-- | util/comm-i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/comm-i2c.c b/util/comm-i2c.c index d88454ee3b..23b2b22f9f 100644 --- a/util/comm-i2c.c +++ b/util/comm-i2c.c @@ -111,7 +111,7 @@ static int ec_command_i2c_3(int command, int version, i2c_msg.addr = EC_I2C_ADDR; i2c_msg.flags = 0; i2c_msg.len = req_len; - i2c_msg.buf = (char *)req_buf; + i2c_msg.buf = req_buf; resp_len = I2C_RESPONSE_HEADER_SIZE + sizeof(struct ec_host_response) + insize; @@ -141,7 +141,7 @@ static int ec_command_i2c_3(int command, int version, i2c_msg.addr = EC_I2C_ADDR; i2c_msg.flags = I2C_M_RD; i2c_msg.len = resp_len; - i2c_msg.buf = (char *)resp_buf; + i2c_msg.buf = resp_buf; error = ioctl(i2c_fd, I2C_RDWR, &data); if (error < 0) { fprintf(stderr, "I2C read failed: %d (err: %d, %s)\n", |