diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-07-26 11:12:31 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-26 16:25:34 -0700 |
commit | 247fdaf13d7d317465d6d04b015a309721e599a9 (patch) | |
tree | 6eef0fb1a07133135f0529a6e26635b99428b6ea /include/host_command.h | |
parent | d0d50b6da7b826c0aa13391d6794b66e1c0f1303 (diff) | |
download | chrome-ec-247fdaf13d7d317465d6d04b015a309721e599a9.tar.gz |
Change host command params/response pointers to void *
This removes a bunch of unnecessary typecasts, since you can assign
to/from void * without them. This also uncovered a few cases where
const was being cast away for the input params; now fixed.
BUG=none
TEST=mkbp hash from u-boot console, and/or system boots ok
Change-Id: Ic314b9d2ca06226ea8a09703ef5c1a912eb7146d
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/28500
Diffstat (limited to 'include/host_command.h')
-rw-r--r-- | include/host_command.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/host_command.h b/include/host_command.h index 135f493737..5313277cab 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -23,14 +23,14 @@ struct host_cmd_handler_args { uint8_t version; /* Version of command (0-31) */ uint8_t params_size; /* Size of input parameters in bytes */ uint8_t i2c_old_response; /* (for I2C) send an old-style response */ - const uint8_t *params; /* Input parameters */ + const void *params; /* Input parameters */ /* * Pointer to output response data buffer. On input to the handler, * points to a buffer of size response_max. Command handler can change * this to point to a different location instead of memcpy()'ing data * into the provided buffer. */ - uint8_t *response; + void *response; /* * Maximum size of response buffer provided to command handler. If the * handler changes response to point to its own larger buffer, it may |