mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
Staging: quickstart: Use switch-case in quickstart_acpi_notify
Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ffe1c0565c
commit
55e4036986
1 changed files with 7 additions and 3 deletions
|
@ -180,15 +180,19 @@ static void quickstart_acpi_notify(acpi_handle handle, u32 event, void *data)
|
|||
if (!quickstart)
|
||||
return;
|
||||
|
||||
if (event == QUICKSTART_EVENT_WAKE)
|
||||
switch (event) {
|
||||
case QUICKSTART_EVENT_WAKE:
|
||||
quickstart_data.pressed = quickstart->btn;
|
||||
else if (event == QUICKSTART_EVENT_RUNTIME) {
|
||||
break;
|
||||
case QUICKSTART_EVENT_RUNTIME:
|
||||
input_report_key(quickstart_input, quickstart->btn->id, 1);
|
||||
input_sync(quickstart_input);
|
||||
input_report_key(quickstart_input, quickstart->btn->id, 0);
|
||||
input_sync(quickstart_input);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static int quickstart_acpi_ghid(struct quickstart_acpi *quickstart)
|
||||
|
|
Loading…
Reference in a new issue