[Intel-gfx] [PATCH 1/2] drm/i915: allow dev_priv for HAS_PCH_* macros too
Jani Nikula
jani.nikula at intel.com
Fri Oct 10 16:53:32 CEST 2014
Follow-up to
commit dbbe91279511d6a18a521b953a3c139e4787e660
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sat Aug 9 19:18:43 2014 +0100
drm/i915: Agnostic INTEL_INFO
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/i915/i915_drv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index ac6232bc1341..48da10e3c6fb 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -2196,7 +2196,7 @@ struct drm_i915_cmd_table {
#define INTEL_PCH_SPT_DEVICE_ID_TYPE 0xA100
#define INTEL_PCH_SPT_LP_DEVICE_ID_TYPE 0x9D00
-#define INTEL_PCH_TYPE(dev) (to_i915(dev)->pch_type)
+#define INTEL_PCH_TYPE(dev) (__I915__(dev)->pch_type)
#define HAS_PCH_SPT(dev) (INTEL_PCH_TYPE(dev) == PCH_SPT)
#define HAS_PCH_LPT(dev) (INTEL_PCH_TYPE(dev) == PCH_LPT)
#define HAS_PCH_CPT(dev) (INTEL_PCH_TYPE(dev) == PCH_CPT)
--
2.1.0
More information about the Intel-gfx
mailing list