diff options
author | Even Xu <even.xu@intel.com> | 2018-09-12 02:44:15 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-09-24 12:20:06 +0300 |
commit | a1c40ce62fd24badcd65cd14533386fc382332be (patch) | |
tree | b664b7854eaa9f6cf189ca59f8c2cc24311545e1 /drivers/hid/intel-ish-hid/ishtp/client.h | |
parent | d174c6664f09e35079aa63a13f8cf37a8b42357a (diff) | |
download | linux-a1c40ce62fd24badcd65cd14533386fc382332be.tar.xz |
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>
Diffstat (limited to 'drivers/hid/intel-ish-hid/ishtp/client.h')
-rw-r--r-- | drivers/hid/intel-ish-hid/ishtp/client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/intel-ish-hid/ishtp/client.h b/drivers/hid/intel-ish-hid/ishtp/client.h index 79eade547f5d..a82ee4d82cdb 100644 --- a/drivers/hid/intel-ish-hid/ishtp/client.h +++ b/drivers/hid/intel-ish-hid/ishtp/client.h @@ -178,5 +178,7 @@ int ishtp_cl_flush_queues(struct ishtp_cl *cl); /* exported functions from ISHTP client buffer management scope */ int ishtp_cl_io_rb_recycle(struct ishtp_cl_rb *rb); +bool ishtp_cl_tx_empty(struct ishtp_cl *cl); +struct ishtp_cl_rb *ishtp_cl_rx_get_rb(struct ishtp_cl *cl); #endif /* _ISHTP_CLIENT_H_ */ |