1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4 */ 5 6 #ifndef __QCOM_AOSS_H__ 7 #define __QCOM_AOSS_H__ 8 9 #include <linux/err.h> 10 #include <linux/device.h> 11 12 struct qmp; 13 14 #if IS_ENABLED(CONFIG_QCOM_AOSS_QMP) 15 16 int qmp_send(struct qmp *qmp, const char *fmt, ...); 17 struct qmp *qmp_get(struct device *dev); 18 void qmp_put(struct qmp *qmp); 19 20 #else 21 22 static inline int qmp_send(struct qmp *qmp, const char *fmt, ...) 23 { 24 return -ENODEV; 25 } 26 27 static inline struct qmp *qmp_get(struct device *dev) 28 { 29 return ERR_PTR(-ENODEV); 30 } 31 32 static inline void qmp_put(struct qmp *qmp) 33 { 34 } 35 36 #endif 37 38 #endif 39
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.