]> err.no Git - linux-2.6/commitdiff
ACPI: video: call ACPI notifier chain for ACPI video notifications
authorZhang Rui <rui.zhang@intel.com>
Fri, 25 Jan 2008 06:48:12 +0000 (14:48 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 7 Feb 2008 08:22:57 +0000 (03:22 -0500)
Call notifier chain for display/brightness switch events.
The kernel mode graphics driver is interested in this.

Sign-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c

index d4b4b52facbaea6721a18b3415e2144aac7b636d..74ff0faeab57988be2222af3225aa07c8ff02fa8 100644 (file)
@@ -1765,6 +1765,7 @@ static void acpi_video_bus_notify(acpi_handle handle, u32 event, void *data)
                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(acpi_handle handle, u32 event, void *data)
                break;
        }
 
+       acpi_notifier_call_chain(device, event, 0);
        input_report_key(input, keycode, 1);
        input_sync(input);
        input_report_key(input, keycode, 0);