1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * Address translation interface via ACPI DSM. 3 * Address translation interface via ACPI DSM. 4 * Copyright (C) 2018 Intel Corporation 4 * Copyright (C) 2018 Intel Corporation 5 */ 5 */ 6 6 7 #ifndef _LINUX_ADXL_H 7 #ifndef _LINUX_ADXL_H 8 #define _LINUX_ADXL_H 8 #define _LINUX_ADXL_H 9 9 >> 10 #ifdef CONFIG_ACPI_ADXL 10 const char * const *adxl_get_component_names(v 11 const char * const *adxl_get_component_names(void); 11 int adxl_decode(u64 addr, u64 component_values 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 12 17 13 #endif /* _LINUX_ADXL_H */ 18 #endif /* _LINUX_ADXL_H */ 14 19
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.