aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2008-02-15 23:17:53 -0500
committerLen Brown <len.brown@intel.com>2008-02-16 00:33:57 -0500
commit7526696a013f33d4926fdc080c26fe6af07ba30f (patch)
treedecf42e68c8ba1126a6c0752cd5fbbdb52fd28d0 /drivers
parent1bc6b9cdd5e608f0b7e6160a823c9dcd51820410 (diff)
ACPI: thinkpad-acpi: synchronize input device switches
Issue EV_SW events at module init time to synchronize the input device with the current state of the switch, otherwise we might lose the first event. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/thinkpad_acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
index 6da3f40ac9f6..02f946516584 100644
--- a/drivers/misc/thinkpad_acpi.c
+++ b/drivers/misc/thinkpad_acpi.c
@@ -2034,6 +2034,7 @@ static int __init hotkey_init(struct ibm_init_struct *iibm)
2034 tpacpi_inputdev->close = &hotkey_inputdev_close; 2034 tpacpi_inputdev->close = &hotkey_inputdev_close;
2035 2035
2036 hotkey_poll_setup_safe(1); 2036 hotkey_poll_setup_safe(1);
2037 tpacpi_input_send_radiosw();
2037 } 2038 }
2038 2039
2039 return (tp_features.hotkey)? 0 : 1; 2040 return (tp_features.hotkey)? 0 : 1;