Re: [RESEND 5/6] drm/i915/display: add struct drm_device to struct intel_display conversion function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2024-11-20 at 14:03 +0200, Jani Nikula wrote:
> Add a __drm_to_display() conversion function to hide the to_i915() usage
> and the implicit dependency on i915_drv.h from intel_display_types.h.
> 
> The goal is for this implementation to be a transitional helper
> only. One idea I've floated around in the past would be to require a
> struct intel_display pointer member to be placed right after struct
> drm_device member in struct drm_i915_private and struct xe_device
> [1][2].
> 
> [1] https://lore.kernel.org/r/7777ff70e2be0663de4398aa6f75f0c54146cbfc.1709727127.git.jani.nikula@xxxxxxxxx
> [2] https://lore.kernel.org/r/0b9459da6c8cba0f74bf2781d69182fa6801cd97.1709727127.git.jani.nikula@xxxxxxxxx
> 
> Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
> ---

Reviewed-by: Luca Coelho <luciano.coelho@xxxxxxxxx>

--
Cheers,
Luca.




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux