Commit 82d3c90c authored by Chris Wilson's avatar Chris Wilson

drm/i915: Use a symbolic constant for OpRegion lid state

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 710f9578
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
#define OPREGION_HEADER_OFFSET 0 #define OPREGION_HEADER_OFFSET 0
#define OPREGION_ACPI_OFFSET 0x100 #define OPREGION_ACPI_OFFSET 0x100
#define ACPI_CLID 0x01ac /* current lid state indicator */
#define ACPI_CDCK 0x01b0 /* current docking state indicator */
#define OPREGION_SWSCI_OFFSET 0x200 #define OPREGION_SWSCI_OFFSET 0x200
#define OPREGION_ASLE_OFFSET 0x300 #define OPREGION_ASLE_OFFSET 0x300
#define OPREGION_VBT_OFFSET 0x400 #define OPREGION_VBT_OFFSET 0x400
...@@ -489,7 +491,7 @@ int intel_opregion_setup(struct drm_device *dev) ...@@ -489,7 +491,7 @@ int intel_opregion_setup(struct drm_device *dev)
opregion->header = base; opregion->header = base;
opregion->vbt = base + OPREGION_VBT_OFFSET; opregion->vbt = base + OPREGION_VBT_OFFSET;
opregion->lid_state = base + 0x01ac; opregion->lid_state = base + ACPI_CLID;
mboxes = opregion->header->mboxes; mboxes = opregion->header->mboxes;
if (mboxes & MBOX_ACPI) { if (mboxes & MBOX_ACPI) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment