lkml.org 
[lkml]   [2020]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] Factor out cmd_xfer_status() setup code
Date
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

\
 
 \ /
  Last update: 2020-01-25 02:22    [W:0.075 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site