From: Luca Tettamanti Date: Thu, 2 Aug 2012 13:30:27 +0000 (+0200) Subject: ACPI video: allow events handlers to veto the keypress X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~20^2~3^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a37c65df9dcbd1c891df2b4a94157999b654841;p=pandora-kernel.git ACPI video: allow events handlers to veto the keypress The standard video events may be overloaded for device specific purposes. For example AMD ACPI interface overloads ACPI_VIDEO_NOTIFY_PROBE (0x81) to signal AMD-specific events. In such cases we don't want to send the keypress (KEY_SWITCHVIDEOMODE) to the userspace because the user did not press the mode switch key (the spurious keypress confuses the DE which usually changes the display configuration and messes up a dual-screen setup). This patch gives the handlers the chance to examine the event and block the keypress if the event is device specific. v2: refactor as suggested by Zhang Rui Signed-off-by: Luca Tettamanti Signed-off-by: Alex Deucher --- Reading git-diff-tree failed