drm/i915: Set i915_ggtt_view_normal type explicitly
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 14 Jan 2016 13:22:10 +0000 (15:22 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Jan 2016 19:04:16 +0000 (21:04 +0200)
Just for clarity set the type for i915_ggtt_view_normal explicitly.

While at it fix the indentation fail for i915_ggtt_view_rotated.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1452777736-4909-3-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c

index 56f4f2e58d53be25f3024ad8e6c259a1e6a44bfb..d7f9ddd528405cb9c9078d536e66ce4b8605e802 100644 (file)
 static int
 i915_get_ggtt_vma_pages(struct i915_vma *vma);
 
-const struct i915_ggtt_view i915_ggtt_view_normal;
+const struct i915_ggtt_view i915_ggtt_view_normal = {
+       .type = I915_GGTT_VIEW_NORMAL,
+};
 const struct i915_ggtt_view i915_ggtt_view_rotated = {
-        .type = I915_GGTT_VIEW_ROTATED
+       .type = I915_GGTT_VIEW_ROTATED,
 };
 
 static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)