1
0
Fork 0

ACPI: thinkpad-acpi: issue EV_SYNC after EV_SWITCH

We were missing a input_sync on the radio switch event report path. Add it.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
hifive-unleashed-5.1
Henrique de Moraes Holschuh 2007-09-23 11:39:00 -03:00 committed by Len Brown
parent 4b2fe7e2a7
commit f4e1e43c60
1 changed files with 3 additions and 1 deletions

View File

@ -1149,9 +1149,11 @@ static void tpacpi_input_send_radiosw(void)
{
int wlsw;
if (tp_features.hotkey_wlsw && !hotkey_get_wlsw(&wlsw))
if (tp_features.hotkey_wlsw && !hotkey_get_wlsw(&wlsw)) {
input_report_switch(tpacpi_inputdev,
SW_RADIO, !!wlsw);
input_sync(tpacpi_inputdev);
}
}
static void hotkey_notify(struct ibm_struct *ibm, u32 event)