Skip to content

Commit

Permalink
drm/i915: Use a symbolic constant for OpRegion lid state
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Feb 24, 2011
1 parent 710f957 commit 82d3c90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/i915/intel_opregion.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

#define OPREGION_HEADER_OFFSET 0
#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_ASLE_OFFSET 0x300
#define OPREGION_VBT_OFFSET 0x400
Expand Down Expand Up @@ -489,7 +491,7 @@ int intel_opregion_setup(struct drm_device *dev)
opregion->header = base;
opregion->vbt = base + OPREGION_VBT_OFFSET;

opregion->lid_state = base + 0x01ac;
opregion->lid_state = base + ACPI_CLID;

mboxes = opregion->header->mboxes;
if (mboxes & MBOX_ACPI) {
Expand Down

0 comments on commit 82d3c90

Please sign in to comment.