Skip to contentSkip to conversation

ACPI video hotkey: remove invalid events handler for video output devices

PATCH In review Zhang Rui 1 participant 1 message Aug 20, 2007

Subsystems (2)
lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

PATCH v3 2/3 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.

---
 drivers/acpi/video.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/acpi/video.c +0 -4
Index: linux-2.6.23-rc3/drivers/acpi/video.c
===================================================================
@@ -1813,10 +1813,6 @@ static void acpi_video_device_notify(acp
 	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 */