Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7526696a authored by Henrique de Moraes Holschuh's avatar Henrique de Moraes Holschuh Committed by Len Brown
Browse files

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: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 1bc6b9cd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;