x86/olpc/xo1/sci: Produce wakeup events for buttons and switches
authorDaniel Drake <dsd@laptop.org>
Thu, 12 Apr 2012 17:18:24 +0000 (18:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 7 May 2012 13:02:25 +0000 (15:02 +0200)
commitd2aa37411b8e65d57d2c5ae36f0222274292020d
tree56e60548d64155edc7a2fa48be85be574aabc762
parent83125a3a189ec34fb22a04e8efad69ae6d52674a
x86/olpc/xo1/sci: Produce wakeup events for buttons and switches

Produce wakeup events for the XO-1's power button, lid switch
and ebook switch, taking care to only produce events when the
states have changed.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Cc: dilinger@queued.net
Cc: pgf@laptop.org
Link: http://lkml.kernel.org/r/20120412171824.D14C49D401E@zog.reactivated.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/olpc/olpc-xo1-sci.c