diff options
| author | Bjorn Andersson <[email protected]> | 2021-09-21 17:49:38 -0500 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2021-09-21 17:49:38 -0500 |
| commit | 665783d887dac334db9be1fbef09f87991e88db6 (patch) | |
| tree | 919811e326fadd7c9dd40b8d04794af42b3338c1 /include/linux | |
| parent | 92dde3279df9fd11b4a10cf6c7d01525c3d373ea (diff) | |
| parent | 8c75d585b931ac874fbe4ee5a8f1811d20c2817f (diff) | |
Merge tag '[email protected]' into drivers-for-5.16
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/soc/qcom/qcom_aoss.h | 38 |
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 |