summaryrefslogtreecommitdiffstats
path: root/include/linux/hsi/hsi.h
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2014-03-28 22:54:25 +0100
committerSebastian Reichel <sre@kernel.org>2014-03-28 22:54:25 +0100
commit431f93ebdae319fab85fa96470f7916c4eeeb1c4 (patch)
treeb1e8f9d602e300aa4cd9439d4d7c16bf1735f7e4 /include/linux/hsi/hsi.h
parent31a01baf585dc5c4e5438922d06934d8f1761f58 (diff)
downloadlinux-431f93ebdae319fab85fa96470f7916c4eeeb1c4.tar.bz2
HSI: export method to (un)register clients
Expose method for registering and unregistering HSI clients, so that client drivers can register other client drivers. This is useful for HSI drivers, which want to use the functionality of other HSI drivers. For example the N900 modem driver can load HSI drivers for mcsaab protocol and speech protocol. Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include/linux/hsi/hsi.h')
-rw-r--r--include/linux/hsi/hsi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hsi/hsi.h b/include/linux/hsi/hsi.h
index 50a85a95e789..57ee40fadb0f 100644
--- a/include/linux/hsi/hsi.h
+++ b/include/linux/hsi/hsi.h
@@ -296,6 +296,9 @@ struct hsi_controller *hsi_alloc_controller(unsigned int n_ports, gfp_t flags);
void hsi_put_controller(struct hsi_controller *hsi);
int hsi_register_controller(struct hsi_controller *hsi);
void hsi_unregister_controller(struct hsi_controller *hsi);
+struct hsi_client *hsi_new_client(struct hsi_port *port,
+ struct hsi_board_info *info);
+int hsi_remove_client(struct device *dev, void *data);
void hsi_port_unregister_clients(struct hsi_port *port);
static inline void hsi_controller_set_drvdata(struct hsi_controller *hsi,