2016-06-07 07:58:20 +08:00
|
|
|
#ifndef __WCNSS_CTRL_H__
|
|
|
|
|
#define __WCNSS_CTRL_H__
|
|
|
|
|
|
|
|
|
|
#include <linux/soc/qcom/smd.h>
|
|
|
|
|
|
2016-09-07 06:18:29 +08:00
|
|
|
#if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL)
|
|
|
|
|
|
2016-06-07 07:58:20 +08:00
|
|
|
struct qcom_smd_channel *qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb);
|
|
|
|
|
|
2016-09-07 06:18:29 +08:00
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
static inline struct qcom_smd_channel*
|
|
|
|
|
qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb)
|
|
|
|
|
{
|
|
|
|
|
WARN_ON(1);
|
|
|
|
|
return ERR_PTR(-ENXIO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-06-07 07:58:20 +08:00
|
|
|
#endif
|