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