diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-09-06 18:18:29 -0400 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2016-10-24 16:48:21 -0400 |
commit | daa6e41ce2b594e7d622b4cd3978defca1139666 (patch) | |
tree | 09565c75bdc4065d764c9901f6127fc64c1ed1a9 /include/linux/soc | |
parent | 1001354ca34179f3db924eb66672442a173147dc (diff) |
soc: qcom: wcnss_ctrl: Stub wcnss_ctrl API
Stub the wcnss_ctrl API to allow compile testing wcnss function drivers.
Cc: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'include/linux/soc')
-rw-r--r-- | include/linux/soc/qcom/wcnss_ctrl.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/soc/qcom/wcnss_ctrl.h b/include/linux/soc/qcom/wcnss_ctrl.h index a37bc5538f19..eab64976a73b 100644 --- a/include/linux/soc/qcom/wcnss_ctrl.h +++ b/include/linux/soc/qcom/wcnss_ctrl.h | |||
@@ -3,6 +3,19 @@ | |||
3 | 3 | ||
4 | #include <linux/soc/qcom/smd.h> | 4 | #include <linux/soc/qcom/smd.h> |
5 | 5 | ||
6 | #if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL) | ||
7 | |||
6 | struct qcom_smd_channel *qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb); | 8 | struct qcom_smd_channel *qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb); |
7 | 9 | ||
10 | #else | ||
11 | |||
12 | static inline struct qcom_smd_channel* | ||
13 | qcom_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 | |||
8 | #endif | 21 | #endif |