summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2021-09-22 00:49:38 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-09-22 00:49:38 +0200
commit665783d887dac334db9be1fbef09f87991e88db6 (patch)
tree919811e326fadd7c9dd40b8d04794af42b3338c1 /include
parentdt-bindings: power: rpmpd: Add SM6350 to rpmpd binding (diff)
parentsoc: qcom: aoss: Expose send for generic usecase (diff)
downloadlinux-665783d887dac334db9be1fbef09f87991e88db6.tar.xz
linux-665783d887dac334db9be1fbef09f87991e88db6.zip
Merge tag '1630420228-31075-2-git-send-email-deesin@codeaurora.org' into drivers-for-5.16
Diffstat (limited to 'include')
-rw-r--r--include/linux/soc/qcom/qcom_aoss.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/linux/soc/qcom/qcom_aoss.h b/include/linux/soc/qcom/qcom_aoss.h
new file mode 100644
index 000000000000..3c2a82e606f8
--- /dev/null
+++ b/include/linux/soc/qcom/qcom_aoss.h
@@ -0,0 +1,38 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (c) 2021, The Linux Foundation. All rights reserved.
+ */
+
+#ifndef __QCOM_AOSS_H__
+#define __QCOM_AOSS_H__
+
+#include <linux/err.h>
+#include <linux/device.h>
+
+struct qmp;
+
+#if IS_ENABLED(CONFIG_QCOM_AOSS_QMP)
+
+int qmp_send(struct qmp *qmp, const void *data, size_t len);
+struct qmp *qmp_get(struct device *dev);
+void qmp_put(struct qmp *qmp);
+
+#else
+
+static inline int qmp_send(struct qmp *qmp, const void *data, size_t len)
+{
+ return -ENODEV;
+}
+
+static inline struct qmp *qmp_get(struct device *dev)
+{
+ return ERR_PTR(-ENODEV);
+}
+
+static inline void qmp_put(struct qmp *qmp)
+{
+}
+
+#endif
+
+#endif