Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7761f638 authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown
Browse files

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



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

Sign-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 9ee85241
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);