* [RFC] [PATCH V2 2/3] ACPI video hotkey: remove invalid events handled by video output devices
@ 2007-08-10 21:07 Zhang Rui
2007-08-16 3:16 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Rui @ 2007-08-10 21:07 UTC (permalink / raw)
To: linux-acpi; +Cc: lenb, mjg59, dmitry.torokhov, hmh, hughsient, luming.yu
Both ACPI_VIDEO_NOTIFY_SWITCH and ACPI_VIDEO_NOTIFY_PROBE
are valid for video Display Devices only.
ACPI video output devices should not handle these kinds of events.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
drivers/acpi/video.c | 4 ----
1 file changed, 4 deletions(-)
Index: linux-2.6.23-rc2/drivers/acpi/video.c
===================================================================
--- linux-2.6.23-rc2.orig/drivers/acpi/video.c
+++ linux-2.6.23-rc2/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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] [PATCH V2 2/3] ACPI video hotkey: remove invalid events handled by video output devices
2007-08-10 21:07 [RFC] [PATCH V2 2/3] ACPI video hotkey: remove invalid events handled by video output devices Zhang Rui
@ 2007-08-16 3:16 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2007-08-16 3:16 UTC (permalink / raw)
To: Zhang Rui, linux-input
Cc: linux-acpi, mjg59, dmitry.torokhov, hmh, hughsient, luming.yu
On Friday 10 August 2007 17:07, Zhang Rui wrote:
> Both ACPI_VIDEO_NOTIFY_SWITCH and ACPI_VIDEO_NOTIFY_PROBE
> are valid for video Display Devices only.
>
> ACPI video output devices should not handle these kinds of events.
please update this description to clarify that
these event codes are handled by the video bus,
and thus should simply not be here in the video device.
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> ---
> drivers/acpi/video.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> Index: linux-2.6.23-rc2/drivers/acpi/video.c
> ===================================================================
> --- linux-2.6.23-rc2.orig/drivers/acpi/video.c
> +++ linux-2.6.23-rc2/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 */
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-16 3:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-10 21:07 [RFC] [PATCH V2 2/3] ACPI video hotkey: remove invalid events handled by video output devices Zhang Rui
2007-08-16 3:16 ` Len Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.