linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Simplify ISHTP client interface
@ 2023-12-05  1:50 Even Xu
  2023-12-05  1:50 ` [PATCH 1/4] HID: Intel-ish-hid: Ishtp: Add helper functions for client connection Even Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Even Xu @ 2023-12-05  1:50 UTC (permalink / raw)
  To: jikos, srinivas.pandruvada, bleung, tzungbi, groeck, linux-input,
	chrome-platform
  Cc: Even Xu

There are three ISHTP clients, they have same ISHTP interface to
connect, reset and disconnect. Also there are multiple steps for
connect, reset and disconnect.

Simplify multiple steps by creating two helper functions. This will
simplify code flow and also avoid code duplication. Also this removes
memory allocation calls during reset, by using these helper functions.

No functional changes are expected with this series.

Even Xu (4):
  HID: Intel-ish-hid: Ishtp: Add helper functions for client connection
  HID: intel-ish-hid: ishtp-hid-client: use helper functions for
    connection
  HID: intel-ish-hid: ishtp-fw-loader: use helper functions for
    connection
  platform: chrome: cros_ec_ishtp: use helper functions for connection

 drivers/hid/intel-ish-hid/ishtp-fw-loader.c  |  60 ++-------
 drivers/hid/intel-ish-hid/ishtp-hid-client.c |  63 ++-------
 drivers/hid/intel-ish-hid/ishtp/client.c     | 185 +++++++++++++++++++++++++--
 drivers/platform/chrome/cros_ec_ishtp.c      |  74 +++--------
 include/linux/intel-ish-client-if.h          |   3 +
 5 files changed, 217 insertions(+), 168 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2023-12-08  0:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05  1:50 [PATCH 0/4] Simplify ISHTP client interface Even Xu
2023-12-05  1:50 ` [PATCH 1/4] HID: Intel-ish-hid: Ishtp: Add helper functions for client connection Even Xu
2023-12-05  1:50 ` [PATCH 2/4] HID: intel-ish-hid: ishtp-hid-client: use helper functions for connection Even Xu
2023-12-05  1:50 ` [PATCH 3/4] HID: intel-ish-hid: ishtp-fw-loader: " Even Xu
2023-12-05  1:50 ` [PATCH 4/4] platform: chrome: cros_ec_ishtp: " Even Xu
2023-12-06  3:33   ` Tzung-Bi Shih
2023-12-06  3:53     ` Xu, Even
2023-12-06 10:34     ` Jiri Kosina
2023-12-08  0:38       ` Xu, Even

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).