1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 26be2b3d0SBjorn Andersson #ifndef __WCNSS_CTRL_H__ 36be2b3d0SBjorn Andersson #define __WCNSS_CTRL_H__ 46be2b3d0SBjorn Andersson 55052de8dSBjorn Andersson #include <linux/rpmsg.h> 66be2b3d0SBjorn Andersson 7daa6e41cSBjorn Andersson #if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL) 8daa6e41cSBjorn Andersson 95052de8dSBjorn Andersson struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss, const char *name, 105052de8dSBjorn Andersson rpmsg_rx_cb_t cb, void *priv); 116be2b3d0SBjorn Andersson 12daa6e41cSBjorn Andersson #else 13daa6e41cSBjorn Andersson qcom_wcnss_open_channel(void * wcnss,const char * name,rpmsg_rx_cb_t cb,void * priv)145052de8dSBjorn Anderssonstatic struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss, 155052de8dSBjorn Andersson const char *name, 165052de8dSBjorn Andersson rpmsg_rx_cb_t cb, 175052de8dSBjorn Andersson void *priv) 18daa6e41cSBjorn Andersson { 19daa6e41cSBjorn Andersson WARN_ON(1); 20daa6e41cSBjorn Andersson return ERR_PTR(-ENXIO); 21daa6e41cSBjorn Andersson } 22daa6e41cSBjorn Andersson 23daa6e41cSBjorn Andersson #endif 24daa6e41cSBjorn Andersson 256be2b3d0SBjorn Andersson #endif 26