]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI button: provide lid status functions
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 10 Sep 2009 22:28:02 +0000 (15:28 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 10 Sep 2009 23:09:11 +0000 (16:09 -0700)
commitacc6fe923b31c5f209ad16108cace7296c6d384f
tree308e53b58027772bd114585f57c4180eb89239a7
parent9e46dbfba0dcad25529d966a98f868d585acd3a7
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>
drivers/acpi/button.c
include/acpi/button.h [new file with mode: 0644]