diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-20 03:02:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-20 03:02:39 -0500 |
commit | fbc2a06056c9aa3cb8c44bf1cfeb1d260e229e5c (patch) | |
tree | feb2a1c13ad3dff5a8c7ab3c0265e8eca7a0c5a3 /drivers/acpi/button.c | |
parent | a3d732f93785da17e0137210deadb4616f5536fc (diff) | |
parent | ee2f6cc7f9ea2542ad46070ed62ba7aa04d08871 (diff) |
Merge branch 'linus' into x86/uv
Diffstat (limited to 'drivers/acpi/button.c')
-rw-r--r-- | drivers/acpi/button.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index 9d568d417eaa..171fd914f435 100644 --- a/drivers/acpi/button.c +++ b/drivers/acpi/button.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <acpi/acpi_bus.h> | 33 | #include <acpi/acpi_bus.h> |
34 | #include <acpi/acpi_drivers.h> | 34 | #include <acpi/acpi_drivers.h> |
35 | 35 | ||
36 | #define ACPI_BUTTON_COMPONENT 0x00080000 | ||
37 | #define ACPI_BUTTON_CLASS "button" | 36 | #define ACPI_BUTTON_CLASS "button" |
38 | #define ACPI_BUTTON_FILE_INFO "info" | 37 | #define ACPI_BUTTON_FILE_INFO "info" |
39 | #define ACPI_BUTTON_FILE_STATE "state" | 38 | #define ACPI_BUTTON_FILE_STATE "state" |
@@ -262,6 +261,7 @@ static int acpi_lid_send_state(struct acpi_button *button) | |||
262 | return -ENODEV; | 261 | return -ENODEV; |
263 | /* input layer checks if event is redundant */ | 262 | /* input layer checks if event is redundant */ |
264 | input_report_switch(button->input, SW_LID, !state); | 263 | input_report_switch(button->input, SW_LID, !state); |
264 | input_sync(button->input); | ||
265 | return 0; | 265 | return 0; |
266 | } | 266 | } |
267 | 267 | ||
@@ -285,8 +285,8 @@ static void acpi_button_notify(acpi_handle handle, u32 event, void *data) | |||
285 | input_report_key(input, keycode, 1); | 285 | input_report_key(input, keycode, 1); |
286 | input_sync(input); | 286 | input_sync(input); |
287 | input_report_key(input, keycode, 0); | 287 | input_report_key(input, keycode, 0); |
288 | input_sync(input); | ||
288 | } | 289 | } |
289 | input_sync(input); | ||
290 | 290 | ||
291 | acpi_bus_generate_proc_event(button->device, event, | 291 | acpi_bus_generate_proc_event(button->device, event, |
292 | ++button->pushed); | 292 | ++button->pushed); |
@@ -478,7 +478,7 @@ static int acpi_button_add(struct acpi_device *device) | |||
478 | device->wakeup.gpe_number, | 478 | device->wakeup.gpe_number, |
479 | ACPI_GPE_TYPE_WAKE_RUN); | 479 | ACPI_GPE_TYPE_WAKE_RUN); |
480 | acpi_enable_gpe(device->wakeup.gpe_device, | 480 | acpi_enable_gpe(device->wakeup.gpe_device, |
481 | device->wakeup.gpe_number, ACPI_NOT_ISR); | 481 | device->wakeup.gpe_number); |
482 | device->wakeup.state.enabled = 1; | 482 | device->wakeup.state.enabled = 1; |
483 | } | 483 | } |
484 | 484 | ||