xref: /openbmc/linux/include/acpi/button.h (revision ead5d1f4d877e92c051e1a1ade623d0d30e71619)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
27e12715eSJesse Barnes #ifndef ACPI_BUTTON_H
37e12715eSJesse Barnes #define ACPI_BUTTON_H
47e12715eSJesse Barnes 
5*ac1cc6b4SJosh Triplett #define ACPI_BUTTON_HID_POWER	"PNP0C0C"
6*ac1cc6b4SJosh Triplett #define ACPI_BUTTON_HID_LID	"PNP0C0D"
7*ac1cc6b4SJosh Triplett #define ACPI_BUTTON_HID_SLEEP	"PNP0C0E"
8*ac1cc6b4SJosh Triplett 
9bcb2b0b2SSudeep Holla #if IS_ENABLED(CONFIG_ACPI_BUTTON)
107e12715eSJesse Barnes extern int acpi_lid_open(void);
111a133e0cSJesse Barnes #else
acpi_lid_open(void)121a133e0cSJesse Barnes static inline int acpi_lid_open(void)
131a133e0cSJesse Barnes {
141a133e0cSJesse Barnes 	return 1;
151a133e0cSJesse Barnes }
16bcb2b0b2SSudeep Holla #endif /* IS_ENABLED(CONFIG_ACPI_BUTTON) */
177e12715eSJesse Barnes 
187e12715eSJesse Barnes #endif /* ACPI_BUTTON_H */
19