xref: /openbmc/linux/include/linux/rpmsg/qcom_smd.h (revision 810c03d9)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef _LINUX_RPMSG_QCOM_SMD_H
4 #define _LINUX_RPMSG_QCOM_SMD_H
5 
6 #include <linux/device.h>
7 
8 struct qcom_smd_edge;
9 
10 #if IS_ENABLED(CONFIG_RPMSG_QCOM_SMD)
11 
12 struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
13 					     struct device_node *node);
14 void qcom_smd_unregister_edge(struct qcom_smd_edge *edge);
15 
16 #else
17 
18 static inline struct qcom_smd_edge *
qcom_smd_register_edge(struct device * parent,struct device_node * node)19 qcom_smd_register_edge(struct device *parent,
20 		       struct device_node *node)
21 {
22 	return NULL;
23 }
24 
qcom_smd_unregister_edge(struct qcom_smd_edge * edge)25 static inline void qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
26 {
27 }
28 
29 #endif
30 
31 #endif
32