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)
commit4c395bdd3f2ca8f7e8efad881e16071182c3b8ca
treea4fa0cc0a856b8d49e8eb4f889398fbd90087ead
parent326d8519fc97be186c55ac605c3a7c957c758ae1
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