Messages in this thread | | | From | Prashant Malani <> | Subject | [PATCH 0/4] Factor out cmd_xfer_status() setup code | Date | Fri, 24 Jan 2020 17:21:01 -0800 |
| |
Many callers of cros_ec_cmd_xfer_status() use similar setup and cleanup code, including setting up the cros_ec_command message struct and copying the received buffer.
This series introduces a wrapper function that performs this setup and teardown, and then updates some places in platform/chrome to use the new wrapper.
Prashant Malani (4): platform/chrome: Add EC command msg wrapper platform/chrome: Make chardev use send_cmd_msg platform/chrome: Use send_cmd_msg in debugfs platform/chrome: Make check_features() use wrapper
drivers/platform/chrome/cros_ec_chardev.c | 33 ++++------ drivers/platform/chrome/cros_ec_debugfs.c | 39 ++++------- drivers/platform/chrome/cros_ec_proto.c | 73 ++++++++++++++++----- include/linux/platform_data/cros_ec_proto.h | 5 ++ 4 files changed, 86 insertions(+), 64 deletions(-)
-- 2.25.0.341.g760bfbb309-goog
| |