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