Skip to contentSkip to conversation

ACPI: video: call ACPI notifier chain for ACPI video notifications

PATCH Applied Zhang Rui 2 participants 2 messages Jan 25, 2008 – Feb 2, 2008 ACPI

lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

PATCH 4/4 ACPI: video: call ACPI notifier chain for ACPI video notifications

From: Zhang Rui <[email protected]>

Call notifier chain for display/brightness switch events. The kernel mode graphics driver is interested in this.

---
 drivers/acpi/video.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/acpi/video.c +2 -0
Index: linux-2.6/drivers/acpi/video.c
===================================================================
@@ -1765,6 +1765,7 @@ static void acpi_video_bus_notify(acpi_h
 		break;
 	}
 
+	acpi_notifier_call_chain(device, event, 0);
 	input_report_key(input, keycode, 1);
 	input_sync(input);
 	input_report_key(input, keycode, 0);
@@ -1826,6 +1827,7 @@ static void acpi_video_device_notify(acp
 		break;
 	}
 
+	acpi_notifier_call_chain(device, event, 0);
 	input_report_key(input, keycode, 1);
 	input_sync(input);
 	input_report_key(input, keycode, 0);
reviewer Applied
#1 lore raw

Applied.

thanks,
-Len

Quoted 32 lines · Zhang Rui

From: Zhang Rui <[email protected]>

Call notifier chain for display/brightness switch events. The kernel mode graphics driver is interested in this.

---
 drivers/acpi/video.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6/drivers/acpi/video.c
===================================================================

drivers/acpi/video.c +2 -0
@@ -1765,6 +1765,7 @@ static void acpi_video_bus_notify(acpi_h
 		break;
 	}
 
+	acpi_notifier_call_chain(device, event, 0);
 	input_report_key(input, keycode, 1);
 	input_sync(input);
 	input_report_key(input, keycode, 0);
@@ -1826,6 +1827,7 @@ static void acpi_video_device_notify(acp
 		break;
 	}
 
+	acpi_notifier_call_chain(device, event, 0);
 	input_report_key(input, keycode, 1);
 	input_sync(input);
 	input_report_key(input, keycode, 0);