drm/i915: Make PAT macros more robust
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 8 Sep 2017 16:11:30 +0000 (16:11 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Sep 2017 20:12:17 +0000 (21:12 +0100)
commit1790625b1deaafb564def63a3a070602656134a1
tree23d50aa60d733b69bb152d3ab3b3ca352355ff0a
parenta2d3d2655ea6d09edfcc6d9b11fb58729c8d5b95
drm/i915: Make PAT macros more robust

Macro params shall be wrapped into () to avoid unexpected results.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170908161130.22424-1-michal.wajdeczko@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/i915_reg.h