Commit 55e40369 authored by Szymon Janc's avatar Szymon Janc Committed by Greg Kroah-Hartman

Staging: quickstart: Use switch-case in quickstart_acpi_notify

Signed-off-by: default avatarSzymon Janc <szymon@janc.net.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ffe1c056
...@@ -180,15 +180,19 @@ static void quickstart_acpi_notify(acpi_handle handle, u32 event, void *data) ...@@ -180,15 +180,19 @@ static void quickstart_acpi_notify(acpi_handle handle, u32 event, void *data)
if (!quickstart) if (!quickstart)
return; return;
if (event == QUICKSTART_EVENT_WAKE) switch (event) {
case QUICKSTART_EVENT_WAKE:
quickstart_data.pressed = quickstart->btn; 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_report_key(quickstart_input, quickstart->btn->id, 1);
input_sync(quickstart_input); input_sync(quickstart_input);
input_report_key(quickstart_input, quickstart->btn->id, 0); input_report_key(quickstart_input, quickstart->btn->id, 0);
input_sync(quickstart_input); input_sync(quickstart_input);
break;
default:
break;
} }
return;
} }
static int quickstart_acpi_ghid(struct quickstart_acpi *quickstart) static int quickstart_acpi_ghid(struct quickstart_acpi *quickstart)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment