[Intel-gfx] [PATCH] drm/i915: Simplify expression &to_i915(dev)->drm

Andi Shyti andi.shyti at linux.intel.com
Tue Jul 25 13:06:51 UTC 2023


Hi Uwe,

On Fri, Jul 21, 2023 at 11:21:33PM +0200, Uwe Kleine-König wrote:
> to_i915 is defined as
> 
> 	container_of(dev, struct drm_i915_private, drm);
> 
> So for a struct drm_device *dev, to_i915(dev)->drm is just dev. Simplify
> accordingly.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

that's correct! Thanks for the cleanup.

Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com> 

Andi


More information about the Intel-gfx mailing list