projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb9f88e
)
hp-wmi: set initial docking state
author
Frans Pop
<
[email protected]
>
Thu, 29 Jan 2009 22:25:25 +0000
(14:25 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 30 Jan 2009 02:04:45 +0000
(18:04 -0800)
If the initial state is not set when the input device is set up, the first
docking event after the module is loaded will be lost.
Signed-off-by: Frans Pop <
[email protected]
>
Acked-by: Matthew Garrett <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/platform/x86/hp-wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/hp-wmi.c
b/drivers/platform/x86/hp-wmi.c
index 626042066be45981a8b03e359ea7b5aed7125b62..de91ddab0a86091fc353938125b04a69893c8554 100644
(file)
--- a/
drivers/platform/x86/hp-wmi.c
+++ b/
drivers/platform/x86/hp-wmi.c
@@
-382,6
+382,11
@@
static int __init hp_wmi_input_setup(void)
case KE_SW:
set_bit(EV_SW, hp_wmi_input_dev->evbit);
set_bit(key->keycode, hp_wmi_input_dev->swbit);
+
+ /* Set initial dock state */
+ input_report_switch(hp_wmi_input_dev, key->keycode,
+ hp_wmi_dock_state());
+ input_sync(hp_wmi_input_dev);
break;
}
}