2016-10-20 09:40:03 +07:00
|
|
|
|
|
|
|
#ifndef _LINUX_RPMSG_QCOM_SMD_H
|
|
|
|
#define _LINUX_RPMSG_QCOM_SMD_H
|
|
|
|
|
|
|
|
#include <linux/device.h>
|
|
|
|
|
|
|
|
struct qcom_smd_edge;
|
|
|
|
|
2017-03-28 12:26:34 +07:00
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_SMD)
|
2016-10-20 09:40:03 +07: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 00:00:07 +07:00
|
|
|
return NULL;
|
2016-10-20 09:40:03 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
|
|
|
|
{
|
2017-01-31 00:00:07 +07:00
|
|
|
return 0;
|
2016-10-20 09:40:03 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|