Re: [PATCH v3 2/7] drm/i915/display: add generic to_intel_display() macro

2024-04-16 Thread Rodrigo Vivi
On Tue, Apr 09, 2024 at 03:26:44PM +0300, Jani Nikula wrote: > Convert various pointers to struct intel_display * using _Generic(). > > Add some macro magic to make adding new conversions easier, and somewhat > abstract the need to cast each generic association. The cast is required > because all

[PATCH v3 2/7] drm/i915/display: add generic to_intel_display() macro

2024-04-09 Thread Jani Nikula
Convert various pointers to struct intel_display * using _Generic(). Add some macro magic to make adding new conversions easier, and somewhat abstract the need to cast each generic association. The cast is required because all associations needs to compile, regardless of the type and the generic