Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ed2fa4dd41adcac0b82dea029bfb7d856a899258
Commit:     ed2fa4dd41adcac0b82dea029bfb7d856a899258
Parent:     9fe4f2aadc3067e36f211f9d8a01634bbc4f7eb4
Author:     Richard Purdie <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 3 10:46:21 2008 -0500
Committer:  Dmitry Torokhov <[EMAIL PROTECTED]>
CommitDate: Thu Jan 3 10:46:21 2008 -0500

    Input: pass EV_PWR events to event handlers
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]>
---
 drivers/input/input.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/input/input.c b/drivers/input/input.c
index c0837d3..a0be978 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to