summaryrefslogtreecommitdiffstats
path: root/include/linux/soc
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2017-03-28 01:26:33 -0400
committerDavid S. Miller <davem@davemloft.net>2017-03-28 20:58:07 -0400
commit5052de8deff5619a9b7071f00084fd0264b58e17 (patch)
tree0e41afc71799e9635d3005b184ae47a5684f428a /include/linux/soc
parentdef499c929a72ba11b25e26e26e900ba3d5c2762 (diff)
soc: qcom: smd: Transition client drivers from smd to rpmsg
By moving these client drivers to use RPMSG instead of the direct SMD API we can reuse them ontop of the newly added GLINK wire-protocol support found in the 820 and 835 Qualcomm platforms. As the new (RPMSG-based) and old SMD implementations are mutually exclusive we have to change all client drivers in one commit, to make sure we have a working system before and after this transition. Acked-by: Andy Gross <andy.gross@linaro.org> Acked-by: Kalle Valo <kvalo@codeaurora.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/soc')
-rw-r--r--include/linux/soc/qcom/wcnss_ctrl.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/soc/qcom/wcnss_ctrl.h b/include/linux/soc/qcom/wcnss_ctrl.h
index eab64976a73b..a4dd4d7c711d 100644
--- a/include/linux/soc/qcom/wcnss_ctrl.h
+++ b/include/linux/soc/qcom/wcnss_ctrl.h
@@ -1,16 +1,19 @@
1#ifndef __WCNSS_CTRL_H__ 1#ifndef __WCNSS_CTRL_H__
2#define __WCNSS_CTRL_H__ 2#define __WCNSS_CTRL_H__
3 3
4#include <linux/soc/qcom/smd.h> 4#include <linux/rpmsg.h>
5 5
6#if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL) 6#if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL)
7 7
8struct qcom_smd_channel *qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb); 8struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss, const char *name,
9 rpmsg_rx_cb_t cb, void *priv);
9 10
10#else 11#else
11 12
12static inline struct qcom_smd_channel* 13static struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss,
13qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb) 14 const char *name,
15 rpmsg_rx_cb_t cb,
16 void *priv)
14{ 17{
15 WARN_ON(1); 18 WARN_ON(1);
16 return ERR_PTR(-ENXIO); 19 return ERR_PTR(-ENXIO);