unify {de,}mangle_poll(), get rid of kernel-side POLL...
[cris-mirror.git] / include / linux / rpmsg / qcom_smd.h
blob2e92d7407a855361733184c9b9c3cc22c21de89d
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef _LINUX_RPMSG_QCOM_SMD_H
4 #define _LINUX_RPMSG_QCOM_SMD_H
6 #include <linux/device.h>
8 struct qcom_smd_edge;
10 #if IS_ENABLED(CONFIG_RPMSG_QCOM_SMD)
12 struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
13 struct device_node *node);
14 int qcom_smd_unregister_edge(struct qcom_smd_edge *edge);
16 #else
18 static inline struct qcom_smd_edge *
19 qcom_smd_register_edge(struct device *parent,
20 struct device_node *node)
22 return NULL;
25 static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
27 return 0;
30 #endif
32 #endif