[Intel-gfx] [PATCH] drm/i915: Use drm_i915_private directly from drv_get_drvdata()

Michal Wajdeczko michal.wajdeczko at intel.com
Mon Jul 29 14:32:02 UTC 2019


On Mon, 29 Jul 2019 13:04:49 +0200, Chris Wilson  
<chris at chris-wilson.co.uk> wrote:

> As we store a pointer to i915 in the drvdata field (as the pointer is  
> both
> an alias to the drm_device and drm_i915_private), we can use the stored
> pointer directly as the i915 device.
>

as we store drm_device* there, let's always treat it as drm_device*
we already have proper magic that does runtime conversion at no cost

Michal


More information about the Intel-gfx mailing list