linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Factor out cmd_xfer_status() setup code
@ 2020-01-25  1:21 Prashant Malani
  2020-01-25  1:21 ` [PATCH 1/4] platform/chrome: Add EC command msg wrapper Prashant Malani
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Prashant Malani @ 2020-01-25  1:21 UTC (permalink / raw)
  To: enric.balletbo, bleung; +Cc: linux-kernel, Prashant Malani

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-01-30 20:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-25  1:21 [PATCH 0/4] Factor out cmd_xfer_status() setup code Prashant Malani
2020-01-25  1:21 ` [PATCH 1/4] platform/chrome: Add EC command msg wrapper Prashant Malani
2020-01-27 15:29   ` Enric Balletbo i Serra
2020-01-27 17:11     ` Prashant Malani
2020-01-27 20:35       ` Enric Balletbo Serra
2020-01-28 19:29         ` Prashant Malani
2020-01-28 20:57           ` Enric Balletbo Serra
2020-01-28 22:44             ` Prashant Malani
     [not found]             ` <CACeCKaewsKMLbO=N2hY5Gen075ZuVmSb8A=A1gQ7SWFvoF7M2w@mail.gmail.com>
2020-01-30 20:38               ` Prashant Malani
2020-01-25  1:21 ` [PATCH 2/4] platform/chrome: Make chardev use send_cmd_msg Prashant Malani
2020-01-25  1:21 ` [PATCH 3/4] platform/chrome: Use send_cmd_msg in debugfs Prashant Malani
2020-01-25  1:21 ` [PATCH 4/4] platform/chrome: Make check_features() use wrapper Prashant Malani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).