summaryrefslogtreecommitdiffstats
path: root/drivers/hid/intel-ish-hid/ishtp/bus.h
diff options
context:
space:
mode:
authorEven Xu <even.xu@intel.com>2018-09-12 01:44:17 +0200
committerJiri Kosina <jkosina@suse.cz>2018-09-24 11:20:06 +0200
commite625020b2c1e51a216094d60a6a72596926dd77d (patch)
tree80056cb89c9c1a06263d5adff2bd9a497321a0cb /drivers/hid/intel-ish-hid/ishtp/bus.h
parentHID: intel-ish-hid: use helper function to access client buffer (diff)
downloadlinux-e625020b2c1e51a216094d60a6a72596926dd77d.tar.xz
linux-e625020b2c1e51a216094d60a6a72596926dd77d.zip
HID: intel-ish-hid: ishtp: add helper function for client search
Add helper function ishtp_fw_cl_get_client() for client driver searching client information to hide internal details from callers. 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/bus.h')
-rw-r--r--drivers/hid/intel-ish-hid/ishtp/bus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/intel-ish-hid/ishtp/bus.h b/drivers/hid/intel-ish-hid/ishtp/bus.h
index 88883311667e..b8a5bcc82536 100644
--- a/drivers/hid/intel-ish-hid/ishtp/bus.h
+++ b/drivers/hid/intel-ish-hid/ishtp/bus.h
@@ -113,5 +113,7 @@ void ishtp_cl_driver_unregister(struct ishtp_cl_driver *driver);
int ishtp_register_event_cb(struct ishtp_cl_device *device,
void (*read_cb)(struct ishtp_cl_device *));
int ishtp_fw_cl_by_uuid(struct ishtp_device *dev, const uuid_le *cuuid);
+struct ishtp_fw_client *ishtp_fw_cl_get_client(struct ishtp_device *dev,
+ const uuid_le *uuid);
#endif /* _LINUX_ISHTP_CL_BUS_H */