aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2014-03-28 17:54:25 -0400
committerSebastian Reichel <sre@kernel.org>2014-05-15 18:54:41 -0400
commit8491451024bcfabdcebd772ce9ec2fc5757acd42 (patch)
treeb8e73b934b21f47abacfd17fecc608dd2b140084 /include/linux
parenta088cf161cc87b39e83c7c53b9f239773422d212 (diff)
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> Reviewed-by: Pavel Machek <pavel@ucw.cz> Tested-By: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Diffstat (limited to 'include/linux')
-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 e3cff94bef04..e20a3999a696 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);
296void hsi_put_controller(struct hsi_controller *hsi); 296void hsi_put_controller(struct hsi_controller *hsi);
297int hsi_register_controller(struct hsi_controller *hsi); 297int hsi_register_controller(struct hsi_controller *hsi);
298void hsi_unregister_controller(struct hsi_controller *hsi); 298void hsi_unregister_controller(struct hsi_controller *hsi);
299struct hsi_client *hsi_new_client(struct hsi_port *port,
300 struct hsi_board_info *info);
301int hsi_remove_client(struct device *dev, void *data);
299void hsi_port_unregister_clients(struct hsi_port *port); 302void hsi_port_unregister_clients(struct hsi_port *port);
300 303
301static inline void hsi_controller_set_drvdata(struct hsi_controller *hsi, 304static inline void hsi_controller_set_drvdata(struct hsi_controller *hsi,