drm/i915: add parentheses around PIXCLK_GATE definitions
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 8 Aug 2012 17:15:32 +0000 (14:15 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Aug 2012 16:42:09 +0000 (18:42 +0200)
By looking at the current way we're using these definitions I don't
think this commit will fix any bug, but programmers from the future
are evil and will certainly find ways to combine macro expansion with
operator precedence to introduce bugs that are hard to find.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h

index af41d03bff822a51c88b5c450c4704fe74cc9532..321ae7261320fa7a356c2667a1d16b0f72e848aa 100644 (file)
 
 /* LPT PIXCLK_GATE */
 #define PIXCLK_GATE                    0xC6020
-#define  PIXCLK_GATE_UNGATE            1<<0
-#define  PIXCLK_GATE_GATE              0<<0
+#define  PIXCLK_GATE_UNGATE            (1<<0)
+#define  PIXCLK_GATE_GATE              (0<<0)
 
 /* SPLL */
 #define SPLL_CTL                       0x46020