Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a1eb96a2f635cdb8f626f4074dae2ba5a6fce1e8
Commit:     a1eb96a2f635cdb8f626f4074dae2ba5a6fce1e8
Parent:     a7ecd1ea913346a72f41a002c365882dc05c9bd5
Author:     Zhang Rui <[EMAIL PROTECTED]>
AuthorDate: Mon Aug 20 18:23:51 2007 +0800
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Thu Aug 23 23:06:11 2007 -0400

    ACPI video hotkey: remove invalid events handler for video output devices
    
    Both ACPI_VIDEO_NOTIFY_SWITCH and ACPI_VIDEO_NOTIFY_PROBE
    are valid for video bus devices only. Actually ACPI video output
    device should never be notified for a output device switch/probe.
    
    ACPI bus devices notify handler already has the code to
    handle these kinds of events.
    
    Signed-off-by: Zhang Rui <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/acpi/video.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index d987019..8efdea5 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -1813,10 +1813,6 @@ static void acpi_video_device_notify(acpi_handle handle, 
u32 event, void *data)
        device = video_device->dev;
 
        switch (event) {
-       case ACPI_VIDEO_NOTIFY_SWITCH:  /* change in status (cycle output 
device) */
-       case ACPI_VIDEO_NOTIFY_PROBE:   /* change in status (output device 
status) */
-               acpi_bus_generate_event(device, event, 0);
-               break;
        case ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS:        /* Cycle brightness */
        case ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS:  /* Increase brightness */
        case ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS:  /* Decrease brightness */
-
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