• Joonas Lahtinen's avatar
    drm/i915: Clean up PCI config register handling · e10fa551
    Joonas Lahtinen authored
    Do not use magic numbers, do not prefix stuff with "PCI_", do not
    declare registers in implementation files. Also move the PCI
    registers under correct comment in i915_reg.h.
    
    v2:
    - Consistently use BSM (not BDSM or other variants from PRM) (Chris)
    - Also include register address to help identify the register (Chris)
    v3:
    - Refer to register value as *_val instead of *_reg (Chris)
    v4:
    - Make style checker happy
    
    Cc: Jani Nikula <jani.nikula@intel.com>
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
    e10fa551
intel_opregion.c 29.6 KB