aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2009-09-10 18:28:02 -0400
committerEric Anholt <eric@anholt.net>2009-09-10 19:09:11 -0400
commit7e12715ecc47a8a59154afe2746e48998225bb69 (patch)
tree308e53b58027772bd114585f57c4180eb89239a7 /include/acpi
parentaf729a26ccc3ff9ad834a5e96f455aab20f176cd (diff)
ACPI button: provide lid status functions
Some drivers need to know when a lid event occurs and get the current status. This can be useful for when a platform firmware clobbers some hardware state at lid time, and a driver needs to restore things when the lid is opened again. Acked-by: Matthew Garrett <mjg59@srcf.ucam.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/button.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/acpi/button.h b/include/acpi/button.h
new file mode 100644
index 000000000000..bb643a79d651
--- /dev/null
+++ b/include/acpi/button.h
@@ -0,0 +1,10 @@
1#ifndef ACPI_BUTTON_H
2#define ACPI_BUTTON_H
3
4#include <linux/notifier.h>
5
6extern int acpi_lid_notifier_register(struct notifier_block *nb);
7extern int acpi_lid_notifier_unregister(struct notifier_block *nb);
8extern int acpi_lid_open(void);
9
10#endif /* ACPI_BUTTON_H */