18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef ACPI_BUTTON_H 38c2ecf20Sopenharmony_ci#define ACPI_BUTTON_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#define ACPI_BUTTON_HID_POWER "PNP0C0C" 68c2ecf20Sopenharmony_ci#define ACPI_BUTTON_HID_LID "PNP0C0D" 78c2ecf20Sopenharmony_ci#define ACPI_BUTTON_HID_SLEEP "PNP0C0E" 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#if IS_ENABLED(CONFIG_ACPI_BUTTON) 108c2ecf20Sopenharmony_ciextern int acpi_lid_open(void); 118c2ecf20Sopenharmony_ci#else 128c2ecf20Sopenharmony_cistatic inline int acpi_lid_open(void) 138c2ecf20Sopenharmony_ci{ 148c2ecf20Sopenharmony_ci return 1; 158c2ecf20Sopenharmony_ci} 168c2ecf20Sopenharmony_ci#endif /* IS_ENABLED(CONFIG_ACPI_BUTTON) */ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#endif /* ACPI_BUTTON_H */ 19