25 lines · 652 B · C
RawDownload
#ifndef ACPI_BUTTON_H#define ACPI_BUTTON_H #include <linux/notifier.h> #if defined(CONFIG_ACPI_BUTTON) || defined(CONFIG_ACPI_BUTTON_MODULE)extern int acpi_lid_notifier_register(struct notifier_block *nb);extern int acpi_lid_notifier_unregister(struct notifier_block *nb);extern int acpi_lid_open(void);#elsestatic inline int acpi_lid_notifier_register(struct notifier_block *nb){	return 0;}static inline int acpi_lid_notifier_unregister(struct notifier_block *nb){	return 0;}static inline int acpi_lid_open(void){	return 1;}#endif /* defined(CONFIG_ACPI_BUTTON) || defined(CONFIG_ACPI_BUTTON_MODULE) */ #endif /* ACPI_BUTTON_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t