2023-08-30 17:31:07 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
|
|
|
|
#ifndef _LINUX_RPMSG_QCOM_SMD_H
|
|
|
|
#define _LINUX_RPMSG_QCOM_SMD_H
|
|
|
|
|
|
|
|
#include <linux/device.h>
|
|
|
|
|
|
|
|
struct qcom_smd_edge;
|
|
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_SMD)
|
|
|
|
|
|
|
|
struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
|
|
|
|
struct device_node *node);
|
2023-10-24 12:59:35 +02:00
|
|
|
void qcom_smd_unregister_edge(struct qcom_smd_edge *edge);
|
2023-08-30 17:31:07 +02:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
static inline struct qcom_smd_edge *
|
|
|
|
qcom_smd_register_edge(struct device *parent,
|
|
|
|
struct device_node *node)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2023-10-24 12:59:35 +02:00
|
|
|
static inline void qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
|
2023-08-30 17:31:07 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|