1 #ifndef __WCNSS_CTRL_H__
2 #define __WCNSS_CTRL_H__
3 
4 #include <linux/rpmsg.h>
5 
6 #if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL)
7 
8 struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss, const char *name,
9 					       rpmsg_rx_cb_t cb, void *priv);
10 
11 #else
12 
13 static struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss,
14 						      const char *name,
15 						      rpmsg_rx_cb_t cb,
16 						      void *priv)
17 {
18 	WARN_ON(1);
19 	return ERR_PTR(-ENXIO);
20 }
21 
22 #endif
23 
24 #endif
25