Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __WCNSS_CTRL_H__
0003 #define __WCNSS_CTRL_H__
0004 
0005 #include <linux/rpmsg.h>
0006 
0007 #if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL)
0008 
0009 struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss, const char *name,
0010                            rpmsg_rx_cb_t cb, void *priv);
0011 
0012 #else
0013 
0014 static struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss,
0015                               const char *name,
0016                               rpmsg_rx_cb_t cb,
0017                               void *priv)
0018 {
0019     WARN_ON(1);
0020     return ERR_PTR(-ENXIO);
0021 }
0022 
0023 #endif
0024 
0025 #endif