Skip to content

Commit eb6f771

Browse files
committed
drm/i915: Remove useless VLV_FEATURE Macro.
This macro got useless after commit 8d9c20e "drm/i915: Remove .is_mobile field from platform struct" that removed is_mobile split from VLV definition. Also this was never reused on any following platform. So let's clean up a bit here. Cc: Carlos Santa <carlos.santa@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1482184508-18346-1-git-send-email-rodrigo.vivi@intel.com
1 parent 3c6b29b commit eb6f771

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

drivers/gpu/drm/i915/i915_pci.c

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -265,26 +265,24 @@ static const struct intel_device_info intel_ivybridge_q_info = {
265265
.has_l3_dpf = 1,
266266
};
267267

268-
#define VLV_FEATURES \
269-
.gen = 7, .num_pipes = 2, \
270-
.is_lp = 1, \
271-
.has_psr = 1, \
272-
.has_runtime_pm = 1, \
273-
.has_rc6 = 1, \
274-
.has_gmbus_irq = 1, \
275-
.has_hw_contexts = 1, \
276-
.has_gmch_display = 1, \
277-
.has_hotplug = 1, \
278-
.has_aliasing_ppgtt = 1, \
279-
.has_full_ppgtt = 1, \
280-
.ring_mask = RENDER_RING | BSD_RING | BLT_RING, \
281-
.display_mmio_offset = VLV_DISPLAY_BASE, \
282-
GEN_DEFAULT_PIPEOFFSETS, \
283-
CURSOR_OFFSETS
284-
285268
static const struct intel_device_info intel_valleyview_info = {
286-
VLV_FEATURES,
287269
.platform = INTEL_VALLEYVIEW,
270+
.gen = 7,
271+
.is_lp = 1,
272+
.num_pipes = 2,
273+
.has_psr = 1,
274+
.has_runtime_pm = 1,
275+
.has_rc6 = 1,
276+
.has_gmbus_irq = 1,
277+
.has_hw_contexts = 1,
278+
.has_gmch_display = 1,
279+
.has_hotplug = 1,
280+
.has_aliasing_ppgtt = 1,
281+
.has_full_ppgtt = 1,
282+
.ring_mask = RENDER_RING | BSD_RING | BLT_RING,
283+
.display_mmio_offset = VLV_DISPLAY_BASE,
284+
GEN_DEFAULT_PIPEOFFSETS,
285+
CURSOR_OFFSETS
288286
};
289287

290288
#define HSW_FEATURES \

0 commit comments

Comments
 (0)