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

Chris Wilson chris at chris-wilson.co.uk
Mon Jul 29 14:37:49 UTC 2019


Quoting Michal Wajdeczko (2019-07-29 15:32:02)
> 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

Or we just s/&i915->drm/i915/, as we own the interface between pci device
and the rest of the world.
-Chris


More information about the Intel-gfx mailing list