diff options
author | Sebastian Reichel <sre@kernel.org> | 2014-03-28 17:59:43 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-05-15 18:54:45 -0400 |
commit | a2aa24734d9dbbd3b9062c2459936c336278fa6a (patch) | |
tree | c398938da3956b80397f3154badbec24134739b9 /include/linux/hsi | |
parent | 8491451024bcfabdcebd772ce9ec2fc5757acd42 (diff) |
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>
Tested-By: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Diffstat (limited to 'include/linux/hsi')
-rw-r--r-- | include/linux/hsi/hsi.h | 11 |
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, | |||
301 | int hsi_remove_client(struct device *dev, void *data); | 301 | int hsi_remove_client(struct device *dev, void *data); |
302 | void hsi_port_unregister_clients(struct hsi_port *port); | 302 | void hsi_port_unregister_clients(struct hsi_port *port); |
303 | 303 | ||
304 | #ifdef CONFIG_OF | ||
305 | void hsi_add_clients_from_dt(struct hsi_port *port, | ||
306 | struct device_node *clients); | ||
307 | #else | ||
308 | static inline void hsi_add_clients_from_dt(struct hsi_port *port, | ||
309 | struct device_node *clients) | ||
310 | { | ||
311 | return; | ||
312 | } | ||
313 | #endif | ||
314 | |||
304 | static inline void hsi_controller_set_drvdata(struct hsi_controller *hsi, | 315 | static inline void hsi_controller_set_drvdata(struct hsi_controller *hsi, |
305 | void *data) | 316 | void *data) |
306 | { | 317 | { |