Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jesse Barnes | 7e12715 | 2009-09-10 15:28:02 -0700 | [diff] [blame] | 2 | #ifndef ACPI_BUTTON_H |
| 3 | #define ACPI_BUTTON_H |
| 4 | |
Josh Triplett | ac1cc6b | 2020-02-11 15:37:22 -0800 | [diff] [blame] | 5 | #define ACPI_BUTTON_HID_POWER "PNP0C0C" |
| 6 | #define ACPI_BUTTON_HID_LID "PNP0C0D" |
| 7 | #define ACPI_BUTTON_HID_SLEEP "PNP0C0E" |
| 8 | |
Sudeep Holla | bcb2b0b | 2015-09-14 16:01:55 +0100 | [diff] [blame] | 9 | #if IS_ENABLED(CONFIG_ACPI_BUTTON) |
Jesse Barnes | 7e12715 | 2009-09-10 15:28:02 -0700 | [diff] [blame] | 10 | extern int acpi_lid_open(void); |
Jesse Barnes | 1a133e0 | 2009-09-15 16:57:24 -0700 | [diff] [blame] | 11 | #else |
Jesse Barnes | 1a133e0 | 2009-09-15 16:57:24 -0700 | [diff] [blame] | 12 | static inline int acpi_lid_open(void) |
| 13 | { |
| 14 | return 1; |
| 15 | } |
Sudeep Holla | bcb2b0b | 2015-09-14 16:01:55 +0100 | [diff] [blame] | 16 | #endif /* IS_ENABLED(CONFIG_ACPI_BUTTON) */ |
Jesse Barnes | 7e12715 | 2009-09-10 15:28:02 -0700 | [diff] [blame] | 17 | |
| 18 | #endif /* ACPI_BUTTON_H */ |