]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Input: add input event to APM event bridge
authorRichard Purdie <rpurdie@rpsys.net>
Wed, 30 Jan 2008 21:33:59 +0000 (16:33 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 Jan 2008 21:33:59 +0000 (16:33 -0500)
commite17bb1de3b7f7569152c71a51e0bafe5419ab54a
treef815db1ec495a70fbca536ac4937d25aca4c8c79
parentd182c10c842007984e12b3b816df2b10d997cc8e
Input: add input event to APM event bridge

This patch adds a very simple input power event to APM user suspend
event bridge. Its currently only works for the systems using the
emulated APM driver but could easily be extended to work with anything
with a true APM BIOS too.

This covers a standard embedded system need which is to suspend when the
user presses a suspend button. It leaves options open to system
integrators to ignore (or unload) this code and implement their own more
complex event handling system.

Its hidden behind the EMBEDDED Kconfig option since its only likely to
be of use to embedded style systems. It can be built as a module so the
"hardcoded" policy can easily be removed from the kernel at runtime if
desired too.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/Kconfig
drivers/input/Makefile
drivers/input/apm-power.c [new file with mode: 0644]