drm/i915: Introduce GEN3_FEATURES for device info
authorCarlos Santa <carlos.santa@intel.com>
Wed, 17 Aug 2016 19:30:50 +0000 (12:30 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 7 Sep 2016 23:07:09 +0000 (16:07 -0700)
commit54d2a6a13ed031db5111bb591252dc48ed1985e1
treefceced2815c21c86d4e53d9bc69f5fd8af63f3c1
parent4d495bea6079b0fcf3a3462cdb87e80ae3664e94
drm/i915: Introduce GEN3_FEATURES for device info

Introducing a GEN3_FEATURES macro to simplify the struct definitions by
platforms given that most of the features are common. Inspired by the
GEN7_FEATURES macro done by Ben W. and others.

Use it for i915g, i915gm, i945g, i945gm, g33 and pnv.

CC: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Carlos Santa <carlos.santa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_pci.c