diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2008-01-03 16:46:21 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-01-03 16:46:21 +0100 |
commit | ed2fa4dd41adcac0b82dea029bfb7d856a899258 (patch) | |
tree | a6d1dd5eb1641c6ab30dc5d2feac3d5910b15777 /drivers/input/input.c | |
parent | Input: spitzkbd - fix suspend key handling (diff) | |
download | linux-ed2fa4dd41adcac0b82dea029bfb7d856a899258.tar.xz linux-ed2fa4dd41adcac0b82dea029bfb7d856a899258.zip |
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 <rpurdie@rpsys.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to '')
-rw-r--r-- | 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 c0837d392057..a0be978501ff 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) |