All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: simplify pipe checking
@ 2012-01-08  1:40 Eugeni Dodonov
  2012-01-08  1:40 ` [PATCH 2/2] drm/i915: handle 3rd pipe Eugeni Dodonov
  2012-01-08  2:01 ` [PATCH 1/2] drm/i915: simplify pipe checking Cyril Brulebois
  0 siblings, 2 replies; 5+ messages in thread
From: Eugeni Dodonov @ 2012-01-08  1:40 UTC (permalink / raw)
  To: intel-gfx; +Cc: Eugeni Dodonov

This is also handled by i915_reg.h, so just reuse this trick to reduce
universe enthropy.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/gpu/drm/i915/i915_suspend.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_suspend.c b/drivers/gpu/drm/i915/i915_suspend.c
index 7886e4f..c0b945c 100644
--- a/drivers/gpu/drm/i915/i915_suspend.c
+++ b/drivers/gpu/drm/i915/i915_suspend.c
@@ -28,6 +28,7 @@
 #include "drm.h"
 #include "i915_drm.h"
 #include "intel_drv.h"
+#include "i915_reg.h"
 
 static bool i915_pipe_enabled(struct drm_device *dev, enum pipe pipe)
 {
@@ -35,7 +36,7 @@ static bool i915_pipe_enabled(struct drm_device *dev, enum pipe pipe)
 	u32	dpll_reg;
 
 	if (HAS_PCH_SPLIT(dev))
-		dpll_reg = (pipe == PIPE_A) ? _PCH_DPLL_A : _PCH_DPLL_B;
+		dpll_reg = PCH_DPLL(pipe);
 	else
 		dpll_reg = (pipe == PIPE_A) ? _DPLL_A : _DPLL_B;
 
-- 
1.7.8

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-17 10:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-08  1:40 [PATCH 1/2] drm/i915: simplify pipe checking Eugeni Dodonov
2012-01-08  1:40 ` [PATCH 2/2] drm/i915: handle 3rd pipe Eugeni Dodonov
2012-01-08  2:01 ` [PATCH 1/2] drm/i915: simplify pipe checking Cyril Brulebois
2012-01-16 20:28   ` Daniel Vetter
2012-01-17 10:05     ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.