summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2014-03-28 22:59:43 +0100
committerSebastian Reichel <sre@kernel.org>2014-05-04 09:34:16 +0200
commitc9ca7340e630de481e722aadf7ab67951fbc3710 (patch)
treec398938da3956b80397f3154badbec24134739b9 /include
parent9204b487e7d1897fef504d32ce7c6e928b044252 (diff)
downloadlinux-c9ca7340e630de481e722aadf7ab67951fbc3710.tar.bz2
HSI: Add common DT binding for HSI client devices
Implement and document generic DT bindings for HSI clients. Signed-off-by: Sebastian Reichel <sre@kernel.org> Reviewed-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'include')
-rw-r--r--include/linux/hsi/hsi.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/hsi/hsi.h b/include/linux/hsi/hsi.h
index e20a3999a696..3ec06300d535 100644
--- a/include/linux/hsi/hsi.h
+++ b/include/linux/hsi/hsi.h
@@ -301,6 +301,17 @@ struct hsi_client *hsi_new_client(struct hsi_port *port,
int hsi_remove_client(struct device *dev, void *data);
void hsi_port_unregister_clients(struct hsi_port *port);
+#ifdef CONFIG_OF
+void hsi_add_clients_from_dt(struct hsi_port *port,
+ struct device_node *clients);
+#else
+static inline void hsi_add_clients_from_dt(struct hsi_port *port,
+ struct device_node *clients)
+{
+ return;
+}
+#endif
+
static inline void hsi_controller_set_drvdata(struct hsi_controller *hsi,
void *data)
{