18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * SPDX-License-Identifier: GPL-2.0 38c2ecf20Sopenharmony_ci * Copyright (C) 2018 Intel Corporation 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef __ACPI_NFIT_H 78c2ecf20Sopenharmony_ci#define __ACPI_NFIT_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#if IS_ENABLED(CONFIG_ACPI_NFIT) 108c2ecf20Sopenharmony_ciint nfit_get_smbios_id(u32 device_handle, u16 *flags); 118c2ecf20Sopenharmony_ci#else 128c2ecf20Sopenharmony_cistatic inline int nfit_get_smbios_id(u32 device_handle, u16 *flags) 138c2ecf20Sopenharmony_ci{ 148c2ecf20Sopenharmony_ci return -EOPNOTSUPP; 158c2ecf20Sopenharmony_ci} 168c2ecf20Sopenharmony_ci#endif 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#endif /* __ACPI_NFIT_H */ 19