xref: /linux-6.15/include/linux/adxl.h (revision 0d5c06aa)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Address translation interface via ACPI DSM.
4  * Copyright (C) 2018 Intel Corporation
5  */
6 
7 #ifndef _LINUX_ADXL_H
8 #define _LINUX_ADXL_H
9 
10 #ifdef CONFIG_ACPI_ADXL
11 const char * const *adxl_get_component_names(void);
12 int adxl_decode(u64 addr, u64 component_values[]);
13 #else
14 static inline const char * const *adxl_get_component_names(void)  { return NULL; }
15 static inline int adxl_decode(u64 addr, u64 component_values[])   { return  -EOPNOTSUPP; }
16 #endif
17 
18 #endif /* _LINUX_ADXL_H */
19