Re: [Intel-gfx] [PATCH v2 09/10] drm/i915/display: convert dp_to_i915() to a macro

2021-12-01 Thread Ville Syrjälä
On Wed, Dec 01, 2021 at 03:57:11PM +0200, Jani Nikula wrote: > Avoid looking into the guts of struct drm_i915_private in > headers. Again, converting an inline function to a macro is less than > ideal, but avoids having to pull in i915_drv.h just for the to_i915() > part. Ugly, but gets the job

[Intel-gfx] [PATCH v2 09/10] drm/i915/display: convert dp_to_i915() to a macro

2021-12-01 Thread Jani Nikula
Avoid looking into the guts of struct drm_i915_private in headers. Again, converting an inline function to a macro is less than ideal, but avoids having to pull in i915_drv.h just for the to_i915() part. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_types.h | 6