drm/i915: set DIDL using the ACPI video output device _ADR method return.
authorZhang Rui <rui.zhang@intel.com>
Mon, 29 Mar 2010 07:12:16 +0000 (15:12 +0800)
committerEric Anholt <eric@anholt.net>
Mon, 19 Apr 2010 00:05:13 +0000 (17:05 -0700)
commit3143751ff51a163b77f7efd389043e038f3e008e
treee00f6296749dac27eb1b17a5c6c2e485fd52b931
parent5ce8ba7c9279a63f99e1f131602580472b8af968
drm/i915: set DIDL using the ACPI video output device _ADR method return.

we used to set the DIDL in the output device detected order.
But some BIOSes requires it to be initialized in the ACPI device order.
e.g. the value of the first field in DIDL stands for the first
ACPI video output device in ACPI namespace.

Now we initialize the DIDL using the device id, i.e. _ADR return value,
of each ACPI video device, if it is not 0.
https://bugzilla.kernel.org/show_bug.cgi?id=15054

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_opregion.c