.. | .. |
---|
2 | 2 | #ifndef ACPI_BUTTON_H |
---|
3 | 3 | #define ACPI_BUTTON_H |
---|
4 | 4 | |
---|
5 | | -#include <linux/notifier.h> |
---|
| 5 | +#define ACPI_BUTTON_HID_POWER "PNP0C0C" |
---|
| 6 | +#define ACPI_BUTTON_HID_LID "PNP0C0D" |
---|
| 7 | +#define ACPI_BUTTON_HID_SLEEP "PNP0C0E" |
---|
6 | 8 | |
---|
7 | 9 | #if IS_ENABLED(CONFIG_ACPI_BUTTON) |
---|
8 | | -extern int acpi_lid_notifier_register(struct notifier_block *nb); |
---|
9 | | -extern int acpi_lid_notifier_unregister(struct notifier_block *nb); |
---|
10 | 10 | extern int acpi_lid_open(void); |
---|
11 | 11 | #else |
---|
12 | | -static inline int acpi_lid_notifier_register(struct notifier_block *nb) |
---|
13 | | -{ |
---|
14 | | - return 0; |
---|
15 | | -} |
---|
16 | | -static inline int acpi_lid_notifier_unregister(struct notifier_block *nb) |
---|
17 | | -{ |
---|
18 | | - return 0; |
---|
19 | | -} |
---|
20 | 12 | static inline int acpi_lid_open(void) |
---|
21 | 13 | { |
---|
22 | 14 | return 1; |
---|