diff options
author | Jani Nikula <jani.nikula@intel.com> | 2024-09-17 19:13:47 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2024-09-19 16:19:52 +0300 |
commit | 798a42505633554740ad2da5cbd5b42d428ab668 (patch) | |
tree | 050f803775d1b2f11f8d0f32d4b99362922a1ef7 /drivers/gpu/drm/i915/display/intel_fb.c | |
parent | a426f671f361bf2bc82379e39c2b3d46ce190ebd (diff) | |
download | lwn-798a42505633554740ad2da5cbd5b42d428ab668.tar.gz lwn-798a42505633554740ad2da5cbd5b42d428ab668.zip |
drm/i915/fb: convert intel_fb_bo_framebuffer_init() to struct drm_i915_gem_object
Prefer the driver agnostic struct drm_gem_object over i915 specific
struct drm_i915_gem_object. Add new intel_bo_* functions as needed.
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/37f6dbb8946198cfac132e5e8eb5820f4f8dbc13.1726589119.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_fb.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c index b705ae05c73e..107ee5d3665f 100644 --- a/drivers/gpu/drm/i915/display/intel_fb.c +++ b/drivers/gpu/drm/i915/display/intel_fb.c @@ -1972,7 +1972,7 @@ int intel_framebuffer_init(struct intel_framebuffer *intel_fb, int ret = -EINVAL; int i; - ret = intel_fb_bo_framebuffer_init(intel_fb, to_intel_bo(obj), mode_cmd); + ret = intel_fb_bo_framebuffer_init(intel_fb, obj, mode_cmd); if (ret) return ret; |