diff options
author | Zhang Rui <rui.zhang@intel.com> | 2007-08-20 06:23:51 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-08-23 23:06:11 -0400 |
commit | a1eb96a2f635cdb8f626f4074dae2ba5a6fce1e8 (patch) | |
tree | d7e3a8a97594b79ceb3b59a8d593a087d60bb058 /drivers/acpi | |
parent | a7ecd1ea913346a72f41a002c365882dc05c9bd5 (diff) |
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 <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | 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 d98701941981..8efdea587ae3 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) | |||
1813 | device = video_device->dev; | 1813 | device = video_device->dev; |
1814 | 1814 | ||
1815 | switch (event) { | 1815 | switch (event) { |
1816 | case ACPI_VIDEO_NOTIFY_SWITCH: /* change in status (cycle output device) */ | ||
1817 | case ACPI_VIDEO_NOTIFY_PROBE: /* change in status (output device status) */ | ||
1818 | acpi_bus_generate_event(device, event, 0); | ||
1819 | break; | ||
1820 | case ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS: /* Cycle brightness */ | 1816 | case ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS: /* Cycle brightness */ |
1821 | case ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS: /* Increase brightness */ | 1817 | case ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS: /* Increase brightness */ |
1822 | case ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS: /* Decrease brightness */ | 1818 | case ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS: /* Decrease brightness */ |