blob: af2fce5d2ee33bec227cfb6e0b25049ce060320d [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Jesse Barnes7e127152009-09-10 15:28:02 -07002#ifndef ACPI_BUTTON_H
3#define ACPI_BUTTON_H
4
Josh Triplettac1cc6b2020-02-11 15:37:22 -08005#define ACPI_BUTTON_HID_POWER "PNP0C0C"
6#define ACPI_BUTTON_HID_LID "PNP0C0D"
7#define ACPI_BUTTON_HID_SLEEP "PNP0C0E"
8
Sudeep Hollabcb2b0b2015-09-14 16:01:55 +01009#if IS_ENABLED(CONFIG_ACPI_BUTTON)
Jesse Barnes7e127152009-09-10 15:28:02 -070010extern int acpi_lid_open(void);
Jesse Barnes1a133e02009-09-15 16:57:24 -070011#else
Jesse Barnes1a133e02009-09-15 16:57:24 -070012static inline int acpi_lid_open(void)
13{
14 return 1;
15}
Sudeep Hollabcb2b0b2015-09-14 16:01:55 +010016#endif /* IS_ENABLED(CONFIG_ACPI_BUTTON) */
Jesse Barnes7e127152009-09-10 15:28:02 -070017
18#endif /* ACPI_BUTTON_H */