xref: /openbmc/linux/include/linux/soc/qcom/wcnss_ctrl.h (revision daa6e41ce2b594e7d622b4cd3978defca1139666)
16be2b3d0SBjorn Andersson #ifndef __WCNSS_CTRL_H__
26be2b3d0SBjorn Andersson #define __WCNSS_CTRL_H__
36be2b3d0SBjorn Andersson 
46be2b3d0SBjorn Andersson #include <linux/soc/qcom/smd.h>
56be2b3d0SBjorn Andersson 
6*daa6e41cSBjorn Andersson #if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL)
7*daa6e41cSBjorn Andersson 
86be2b3d0SBjorn Andersson struct qcom_smd_channel *qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb);
96be2b3d0SBjorn Andersson 
10*daa6e41cSBjorn Andersson #else
11*daa6e41cSBjorn Andersson 
12*daa6e41cSBjorn Andersson static inline struct qcom_smd_channel*
13*daa6e41cSBjorn Andersson qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb)
14*daa6e41cSBjorn Andersson {
15*daa6e41cSBjorn Andersson 	WARN_ON(1);
16*daa6e41cSBjorn Andersson 	return ERR_PTR(-ENXIO);
17*daa6e41cSBjorn Andersson }
18*daa6e41cSBjorn Andersson 
19*daa6e41cSBjorn Andersson #endif
20*daa6e41cSBjorn Andersson 
216be2b3d0SBjorn Andersson #endif
22