summaryrefslogtreecommitdiff
path: root/drivers/acpi/Kconfig
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2006-11-09 00:40:13 -0500
committerLen Brown <len.brown@intel.com>2006-11-09 03:20:19 -0500
commitc0968f0ea21d10b6720246e1e96bd6a7a161964d (patch)
tree8c2320d5d3c579cb66381aab34b1be27ceff41e9 /drivers/acpi/Kconfig
parent082f2f84be5db164280483efa7eb1549d867353d (diff)
downloadlwn-c0968f0ea21d10b6720246e1e96bd6a7a161964d.tar.gz
lwn-c0968f0ea21d10b6720246e1e96bd6a7a161964d.zip
ACPI: button: register with input layer
In addition to signalling button/lid events through /proc/acpi/event, create separate input devices and report KEY_POWER, KEY_SLEEP and SW_LID through input layer. Also remove unnecessary casts and variable initializations, clean up formatting. Sleep button may autorepeat but userspace will have to filter duplicate sleep requests anyway (and discard unprocessed events right after wakeup). Unlike /proc/acpi/event interface input device corresponding to LID switch reports true lid state instead of just a counter. SW_LID is active when lid is closed. The driver now depends on CONFIG_INPUT. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/Kconfig')
-rw-r--r--drivers/acpi/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 0f9d4be7ed75..0ed801229675 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -97,6 +97,7 @@ config ACPI_BATTERY
config ACPI_BUTTON
tristate "Button"
+ depends on INPUT
default y
help
This driver handles events on the power, sleep and lid buttons.