]> git.baikalelectronics.ru Git - kernel.git/commit
hp-wmi: notify of a potential docking state change on resume
authorFrans Pop <elendil@planet.nl>
Wed, 4 Mar 2009 19:55:28 +0000 (11:55 -0800)
committerLen Brown <len.brown@intel.com>
Mon, 16 Mar 2009 03:45:28 +0000 (23:45 -0400)
commitc646198438165ce7a9793196a0b7a1ec413261be
treea4fa0cc0a856b8d49e8eb4f889398fbd90087ead
parentf3afaa885e1a36710f5c969ec09c679f8951fef5
hp-wmi: notify of a potential docking state change on resume

It is possible that the system gets docked or undocked while it's
suspended. Generate an input event on resume to notify user space
if there was a state change.

As it is a switch, we can generate the event unconditionally; the
input layer will only pass it on if there is an actual change.

Signed-off-by: Frans Pop <elendil@planet.nl>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/hp-wmi.c