HID: intel-ish-hid: ishtp: add helper functions for client buffer operation
authorEven Xu <even.xu@intel.com>
Tue, 11 Sep 2018 23:44:15 +0000 (16:44 -0700)
committerJiri Kosina <jkosina@suse.cz>
Mon, 24 Sep 2018 09:20:06 +0000 (11:20 +0200)
commita1c40ce62fd24badcd65cd14533386fc382332be
treeb664b7854eaa9f6cf189ca59f8c2cc24311545e1
parentd174c6664f09e35079aa63a13f8cf37a8b42357a
HID: intel-ish-hid: ishtp: add helper functions for client buffer operation

Add helper ishtp_cl_tx_empty() and ishtp_cl_rx_get_rb() to hide internal
details from callers, who needs this functionality.

Signed-off-by: Even Xu <even.xu@intel.com>
Reviewed-by: Andriy Shevchenko <andriy.shevchenko@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ishtp/client-buffers.c
drivers/hid/intel-ish-hid/ishtp/client.h