Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288960
b: refs/heads/master
c: 55e4036
h: refs/heads/master
v: v3
  • Loading branch information
Szymon Janc authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent a50eaad commit 5f33263
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffe1c0565c27324f6e23a5b47ae5ff873553c62f
refs/heads/master: 55e403698642fc39e37c2a8d30aa6fa55c9ae116
10 changes: 7 additions & 3 deletions trunk/drivers/staging/quickstart/quickstart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5f33263

Please sign in to comment.