drm/i915: Cleanup i915_param()
authorDavid Weinehall <david.weinehall@linux.intel.com>
Fri, 2 Sep 2016 10:46:17 +0000 (13:46 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 2 Sep 2016 11:28:33 +0000 (12:28 +0100)
commit16162470023627776d503795d08aa5a797ce40a2
treee7f4fba0e872d8b311c5a0bb02a8e0c49c24c246
parent662d19e78b2c0a955879f487755e6a70a5e0226a
drm/i915: Cleanup i915_param()

Rather than having a separate case for each value where we just return
a hardcoded value = 1, we lump them all together and rely on the awesome
case-fallthrough feature of C.

Fix all feature macros to pass dev_priv instead of dev while at it,
and use INTEL_GEN() instead of INTEL_INFO()->gen.

Signed-off-by: David Weinehall <david.weinehall@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160902104617.29089-1-david.weinehall@linux.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_drv.c
This page took 0.050997 seconds and 5 git commands to generate.