mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
drm/i915/crtc: pass struct intel_display to DISPLAY_VER()
Drop another reference to struct drm_i915_private. Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://lore.kernel.org/r/cb84073ff92a99e74ff6dfb8e395365b7cbb5332.1746529001.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
32119a07c9
commit
a76a2be26d
|
|
@ -305,7 +305,6 @@ static const struct drm_crtc_funcs i8xx_crtc_funcs = {
|
|||
|
||||
int intel_crtc_init(struct intel_display *display, enum pipe pipe)
|
||||
{
|
||||
struct drm_i915_private *dev_priv = to_i915(display->drm);
|
||||
struct intel_plane *primary, *cursor;
|
||||
const struct drm_crtc_funcs *funcs;
|
||||
struct intel_crtc *crtc;
|
||||
|
|
@ -333,7 +332,7 @@ int intel_crtc_init(struct intel_display *display, enum pipe pipe)
|
|||
for_each_sprite(display, pipe, sprite) {
|
||||
struct intel_plane *plane;
|
||||
|
||||
if (DISPLAY_VER(dev_priv) >= 9)
|
||||
if (DISPLAY_VER(display) >= 9)
|
||||
plane = skl_universal_plane_create(display, pipe, PLANE_2 + sprite);
|
||||
else
|
||||
plane = intel_sprite_plane_create(display, pipe, sprite);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user