]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - include/linux/adxl.h
dax: Fix unlock mismatch with updated API
[mirror_ubuntu-eoan-kernel.git] / include / linux / adxl.h
CommitLineData
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
11const char * const *adxl_get_component_names(void);
12int adxl_decode(u64 addr, u64 component_values[]);
a324e939
BP
13#else
14static inline const char * const *adxl_get_component_names(void) { return NULL; }
15static inline int adxl_decode(u64 addr, u64 component_values[]) { return -EOPNOTSUPP; }
16#endif
4cf841e3
TL
17
18#endif /* _LINUX_ADXL_H */