drm/i915: add dev_to_i915 helper
authorImre Deak <imre.deak@intel.com>
Thu, 8 Jan 2015 15:54:13 +0000 (17:54 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Jan 2015 01:48:19 +0000 (02:48 +0100)
commit888d0d421663313739a8bf93459c6ba61fd4b121
treea2ca885a6dc6c82d1cbb4cab61b03431d118ab22
parenteaa27f34e91a14cdceed26ed6c6793ec1d186115
drm/i915: add dev_to_i915 helper

This will be needed by later patches, so factor it out.

No functional change.

v2:
- s/dev_to_i915_priv/dev_to_i915/ (Jani)
- don't use the helper in i915_pm_suspend (Chris)
- simplify the helper (Chris)
v3:
- remove redundant upcasting in the helper (Daniel)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h