button.h 401 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef ACPI_BUTTON_H
  3. #define ACPI_BUTTON_H
  4. #define ACPI_BUTTON_HID_POWER "PNP0C0C"
  5. #define ACPI_BUTTON_HID_LID "PNP0C0D"
  6. #define ACPI_BUTTON_HID_SLEEP "PNP0C0E"
  7. #if IS_ENABLED(CONFIG_ACPI_BUTTON)
  8. extern int acpi_lid_open(void);
  9. #else
  10. static inline int acpi_lid_open(void)
  11. {
  12. return 1;
  13. }
  14. #endif /* IS_ENABLED(CONFIG_ACPI_BUTTON) */
  15. #endif /* ACPI_BUTTON_H */