Skip to content

Commit

Permalink
ACPI: thinkpad-acpi: issue EV_SYNC after EV_SWITCH
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Henrique de Moraes Holschuh authored and Len Brown committed Sep 24, 2007
1 parent 4b2fe7e commit f4e1e43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/misc/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4e1e43

Please sign in to comment.