2016-06-07 06:58:20 +07:00
|
|
|
#ifndef __WCNSS_CTRL_H__
|
|
|
|
#define __WCNSS_CTRL_H__
|
|
|
|
|
2017-03-28 12:26:33 +07:00
|
|
|
#include <linux/rpmsg.h>
|
2016-06-07 06:58:20 +07:00
|
|
|
|
2016-09-07 05:18:29 +07:00
|
|
|
#if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL)
|
|
|
|
|
2017-03-28 12:26:33 +07:00
|
|
|
struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss, const char *name,
|
|
|
|
rpmsg_rx_cb_t cb, void *priv);
|
2016-06-07 06:58:20 +07:00
|
|
|
|
2016-09-07 05:18:29 +07:00
|
|
|
#else
|
|
|
|
|
2017-03-28 12:26:33 +07:00
|
|
|
static struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss,
|
|
|
|
const char *name,
|
|
|
|
rpmsg_rx_cb_t cb,
|
|
|
|
void *priv)
|
2016-09-07 05:18:29 +07:00
|
|
|
{
|
|
|
|
WARN_ON(1);
|
|
|
|
return ERR_PTR(-ENXIO);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2016-06-07 06:58:20 +07:00
|
|
|
#endif
|