]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Input: pass EV_PWR events to event handlers
authorRichard Purdie <rpurdie@rpsys.net>
Thu, 3 Jan 2008 15:46:21 +0000 (10:46 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Jan 2008 15:46:21 +0000 (10:46 -0500)
input_handle_event() used to pass EV_PWR events to event handlers
but no longer does so in 2.6.23. Modules to trigger power management
events based on input power events exist but rely on the EV_PWR events
being passed to the input event handlers.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c

index c0837d3920570141d6111576cfea2703bbd535d2..a0be978501ff1c1679374adcde4d13ad84102aa6 100644 (file)
@@ -235,6 +235,10 @@ static void input_handle_event(struct input_dev *dev,
                if (value >= 0)
                        disposition = INPUT_PASS_TO_ALL;
                break;
+
+       case EV_PWR:
+               disposition = INPUT_PASS_TO_ALL;
+               break;
        }
 
        if (type != EV_SYN)