Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef ACPI_BUTTON_H
0003 #define ACPI_BUTTON_H
0004 
0005 #define ACPI_BUTTON_HID_POWER   "PNP0C0C"
0006 #define ACPI_BUTTON_HID_LID "PNP0C0D"
0007 #define ACPI_BUTTON_HID_SLEEP   "PNP0C0E"
0008 
0009 #if IS_ENABLED(CONFIG_ACPI_BUTTON)
0010 extern int acpi_lid_open(void);
0011 #else
0012 static inline int acpi_lid_open(void)
0013 {
0014     return 1;
0015 }
0016 #endif /* IS_ENABLED(CONFIG_ACPI_BUTTON) */
0017 
0018 #endif /* ACPI_BUTTON_H */