ACPI: Always report a sync event after a lid state change
authorGuillem Jover <guillem.jover@nokia.com>
Tue, 28 Oct 2008 05:34:27 +0000 (01:34 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Nov 2008 03:05:45 +0000 (19:05 -0800)
commitfe40aac3d64f616a053d06fa328fc193b4789e71
tree2acc78090ccb598602ad4a226651ab94a6dd72a7
parentbaae4f5fd7a75bdfa70d374b738963053df2bcaa
ACPI: Always report a sync event after a lid state change

upstream commit df316e939100e789b3c5d4d102619ccf5834bd00

Currently not always an EV_SYN event is reported to userland
after the EV_SW SW_LID event has been sent. This is easy to verify
by using “input-events” from input-utils and just closing and opening
the lid.

Signed-off-by: Guillem Jover <guillem.jover@nokia.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/acpi/button.c