Commit | Line | Data |
---|---|---|
4cf841e3 TL |
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 | ||
a324e939 | 10 | #ifdef CONFIG_ACPI_ADXL |
4cf841e3 TL |
11 | const char * const *adxl_get_component_names(void); |
12 | int adxl_decode(u64 addr, u64 component_values[]); | |
a324e939 BP |
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 | |
4cf841e3 TL |
17 | |
18 | #endif /* _LINUX_ADXL_H */ |