2016-10-20 10:40:03 +08:00
|
|
|
|
|
|
|
#ifndef _LINUX_RPMSG_QCOM_SMD_H
|
|
|
|
#define _LINUX_RPMSG_QCOM_SMD_H
|
|
|
|
|
|
|
|
#include <linux/device.h>
|
|
|
|
|
|
|
|
struct qcom_smd_edge;
|
|
|
|
|
2017-03-28 13:26:34 +08:00
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_SMD)
|
2016-10-20 10:40:03 +08:00
|
|
|
|
|
|
|
struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
|
|
|
|
struct device_node *node);
|
|
|
|
int qcom_smd_unregister_edge(struct qcom_smd_edge *edge);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
static inline struct qcom_smd_edge *
|
|
|
|
qcom_smd_register_edge(struct device *parent,
|
|
|
|
struct device_node *node)
|
|
|
|
{
|
2017-01-31 01:00:07 +08:00
|
|
|
return NULL;
|
2016-10-20 10:40:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
|
|
|
|
{
|
2017-01-31 01:00:07 +08:00
|
|
|
return 0;
|
2016-10-20 10:40:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|