From 9168b1d2a8c848e6ce2ac6e3038dabe1c6b13682 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 24 Oct 2008 00:28:33 +0300 Subject: [PATCH] --- yaml --- r: 117835 b: refs/heads/master c: df316e939100e789b3c5d4d102619ccf5834bd00 h: refs/heads/master i: 117833: eea9ef38a6c10137b7c95d714f12077c0b06c3be 117831: ff3eb15d288666a19888aec085f9c6174f002f22 v: v3 --- [refs] | 2 +- trunk/drivers/acpi/button.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 55a3603d1c4d..da6e54630169 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 16be87ea170ae6cfaa9f47f79d14f7577d8cb420 +refs/heads/master: df316e939100e789b3c5d4d102619ccf5834bd00 diff --git a/trunk/drivers/acpi/button.c b/trunk/drivers/acpi/button.c index 9d568d417eaa..cb046c3fc3f2 100644 --- a/trunk/drivers/acpi/button.c +++ b/trunk/drivers/acpi/button.c @@ -262,6 +262,7 @@ static int acpi_lid_send_state(struct acpi_button *button) return -ENODEV; /* input layer checks if event is redundant */ input_report_switch(button->input, SW_LID, !state); + input_sync(button->input); return 0; } @@ -285,8 +286,8 @@ static void acpi_button_notify(acpi_handle handle, u32 event, void *data) input_report_key(input, keycode, 1); input_sync(input); input_report_key(input, keycode, 0); + input_sync(input); } - input_sync(input); acpi_bus_generate_proc_event(button->device, event, ++button->pushed);