aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-02-24 13:13:42 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2011-02-24 13:13:42 -0500
commit82d3c90cc8e3ca8a7b7fe67a292e30603c24e3d9 (patch)
treecf8bcdfc250b543ac1969e6dc6183895483dd5bf
parent710f957846cff998c681f3701f6f90eda896458f (diff)
drm/i915: Use a symbolic constant for OpRegion lid state
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--drivers/gpu/drm/i915/intel_opregion.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_opregion.c b/drivers/gpu/drm/i915/intel_opregion.c
index 9efccb95fd58..d2c710422908 100644
--- a/drivers/gpu/drm/i915/intel_opregion.c
+++ b/drivers/gpu/drm/i915/intel_opregion.c
@@ -39,6 +39,8 @@
39 39
40#define OPREGION_HEADER_OFFSET 0 40#define OPREGION_HEADER_OFFSET 0
41#define OPREGION_ACPI_OFFSET 0x100 41#define OPREGION_ACPI_OFFSET 0x100
42#define ACPI_CLID 0x01ac /* current lid state indicator */
43#define ACPI_CDCK 0x01b0 /* current docking state indicator */
42#define OPREGION_SWSCI_OFFSET 0x200 44#define OPREGION_SWSCI_OFFSET 0x200
43#define OPREGION_ASLE_OFFSET 0x300 45#define OPREGION_ASLE_OFFSET 0x300
44#define OPREGION_VBT_OFFSET 0x400 46#define OPREGION_VBT_OFFSET 0x400
@@ -489,7 +491,7 @@ int intel_opregion_setup(struct drm_device *dev)
489 opregion->header = base; 491 opregion->header = base;
490 opregion->vbt = base + OPREGION_VBT_OFFSET; 492 opregion->vbt = base + OPREGION_VBT_OFFSET;
491 493
492 opregion->lid_state = base + 0x01ac; 494 opregion->lid_state = base + ACPI_CLID;
493 495
494 mboxes = opregion->header->mboxes; 496 mboxes = opregion->header->mboxes;
495 if (mboxes & MBOX_ACPI) { 497 if (mboxes & MBOX_ACPI) {