summaryrefslogtreecommitdiffstats
path: root/include/linux/adxl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/adxl.h')
-rw-r--r--include/linux/adxl.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/adxl.h b/include/linux/adxl.h
new file mode 100644
index 000000000000..2d29f55923e3
--- /dev/null
+++ b/include/linux/adxl.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Address translation interface via ACPI DSM.
+ * Copyright (C) 2018 Intel Corporation
+ */
+
+#ifndef _LINUX_ADXL_H
+#define _LINUX_ADXL_H
+
+#ifdef CONFIG_ACPI_ADXL
+const char * const *adxl_get_component_names(void);
+int adxl_decode(u64 addr, u64 component_values[]);
+#else
+static inline const char * const *adxl_get_component_names(void) { return NULL; }
+static inline int adxl_decode(u64 addr, u64 component_values[]) { return -EOPNOTSUPP; }
+#endif
+
+#endif /* _LINUX_ADXL_H */
OpenPOWER on IntegriCloud