Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v4.11 21 lines 401 B view raw
1#ifndef __WCNSS_CTRL_H__ 2#define __WCNSS_CTRL_H__ 3 4#include <linux/soc/qcom/smd.h> 5 6#if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL) 7 8struct qcom_smd_channel *qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb); 9 10#else 11 12static inline struct qcom_smd_channel* 13qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb) 14{ 15 WARN_ON(1); 16 return ERR_PTR(-ENXIO); 17} 18 19#endif 20 21#endif