From: Henrique de Moraes Holschuh Date: Sat, 16 Feb 2008 04:17:53 +0000 (-0200) Subject: ACPI: thinkpad-acpi: synchronize input device switches X-Git-Tag: firefly_0821_release~22355^2^7~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7526696a013f33d4926fdc080c26fe6af07ba30f;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Len Brown --- 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) tpacpi_inputdev->close = &hotkey_inputdev_close; hotkey_poll_setup_safe(1); + tpacpi_input_send_radiosw(); } return (tp_features.hotkey)? 0 : 1;