Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
26 lines
494 B
C
26 lines
494 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#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
|