diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-06-09 08:49:43 +0000 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-06-10 02:31:43 +0000 |
commit | b4d0836e81603600a8db7777b588fe020abf4cf8 (patch) | |
tree | 3195dbade7fc51b432f235f4376f93f663668cce /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 93bea2faed630bd014916fd2e7ab16a79ee1b46a (diff) |
platform/chrome: cros_ec_proto: separate cros_ec_get_proto_info()
Rename cros_ec_host_command_proto_query() to cros_ec_get_proto_info()
and make it responsible for setting `ec_dev` fields according to the
response protocol info.
Also make cros_ec_get_host_event_wake_mask() allocate its own message
buffer. It was lucky that size of `struct ec_response_host_event_mask`
is less than `struct ec_response_get_protocol_info`. Thus, the buffer
wasn't overflow.
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220609084957.3684698-8-tzungbi@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions