Skip to content

Commit

Permalink
ACPI: thinkpad-acpi: synchronize input device switches
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Henrique de Moraes Holschuh authored and Len Brown committed Feb 16, 2008
1 parent 1bc6b9c commit 7526696
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/misc/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2034,6 +2034,7 @@ static int __init hotkey_init(struct ibm_init_struct *iibm)
tpacpi_inputdev->close = &hotkey_inputdev_close;

hotkey_poll_setup_safe(1);
tpacpi_input_send_radiosw();
}

return (tp_features.hotkey)? 0 : 1;
Expand Down

0 comments on commit 7526696

Please sign in to comment.