linux-stable/include/linux/soc/qcom/wcnss_ctrl.h
Bjorn Andersson 5052de8def 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>
2017-03-28 17:58:07 -07:00

24 lines
455 B
C

#ifndef __WCNSS_CTRL_H__
#define __WCNSS_CTRL_H__
#include <linux/rpmsg.h>
#if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL)
struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss, const char *name,
rpmsg_rx_cb_t cb, void *priv);
#else
static struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss,
const char *name,
rpmsg_rx_cb_t cb,
void *priv)
{
WARN_ON(1);
return ERR_PTR(-ENXIO);
}
#endif
#endif