2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2009-09-10 15:28:02 -07:00
|
|
|
#ifndef ACPI_BUTTON_H
|
|
|
|
|
#define ACPI_BUTTON_H
|
|
|
|
|
|
2020-02-11 15:37:22 -08:00
|
|
|
#define ACPI_BUTTON_HID_POWER "PNP0C0C"
|
|
|
|
|
#define ACPI_BUTTON_HID_LID "PNP0C0D"
|
|
|
|
|
#define ACPI_BUTTON_HID_SLEEP "PNP0C0E"
|
|
|
|
|
|
2015-09-14 16:01:55 +01:00
|
|
|
#if IS_ENABLED(CONFIG_ACPI_BUTTON)
|
2009-09-10 15:28:02 -07:00
|
|
|
extern int acpi_lid_open(void);
|
2009-09-15 16:57:24 -07:00
|
|
|
#else
|
|
|
|
|
static inline int acpi_lid_open(void)
|
|
|
|
|
{
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
2015-09-14 16:01:55 +01:00
|
|
|
#endif /* IS_ENABLED(CONFIG_ACPI_BUTTON) */
|
2009-09-10 15:28:02 -07:00
|
|
|
|
|
|
|
|
#endif /* ACPI_BUTTON_H */
|