mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
ACPI: thinkpad-acpi: minor hotkey_radio_sw fixes
Fixes some minor points in the radio switch code and docs. Signed-off-by: Henrique de Moraes Holschuh <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
d0788cfbae
commit
d147da73c9
2 changed files with 5 additions and 5 deletions
|
|
@ -1161,15 +1161,15 @@ static void tpacpi_input_send_radiosw(void)
|
|||
{
|
||||
int wlsw;
|
||||
|
||||
mutex_lock(&tpacpi_inputdev_send_mutex);
|
||||
|
||||
if (tp_features.hotkey_wlsw && !hotkey_get_wlsw(&wlsw)) {
|
||||
mutex_lock(&tpacpi_inputdev_send_mutex);
|
||||
|
||||
input_report_switch(tpacpi_inputdev,
|
||||
SW_RADIO, !!wlsw);
|
||||
input_sync(tpacpi_inputdev);
|
||||
}
|
||||
|
||||
mutex_unlock(&tpacpi_inputdev_send_mutex);
|
||||
mutex_unlock(&tpacpi_inputdev_send_mutex);
|
||||
}
|
||||
}
|
||||
|
||||
static void tpacpi_input_send_tabletsw(unsigned int state)
|
||||
|
|
|
|||
Loading…
Reference in a new issue