Blame view

include/acpi/button.h 652 Bytes
7e12715ec   Jesse Barnes   ACPI button: prov...
1
2
3
4
  #ifndef ACPI_BUTTON_H
  #define ACPI_BUTTON_H
  
  #include <linux/notifier.h>
1a133e0c9   Jesse Barnes   ACPI: make ACPI b...
5
  #if defined(CONFIG_ACPI_BUTTON) || defined(CONFIG_ACPI_BUTTON_MODULE)
7e12715ec   Jesse Barnes   ACPI button: prov...
6
7
8
  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);
1a133e0c9   Jesse Barnes   ACPI: make ACPI b...
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  #else
  static 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) */
7e12715ec   Jesse Barnes   ACPI button: prov...
23
24
  
  #endif /* ACPI_BUTTON_H */