Amdgpu and radeon handle GEM objects that refer to fbdev framebuffers
separately from the other GEM objects. Share the test logic in a single
helper that works for all.

This series is purely for cleaning up the drivers. No functional changes
intended.

Thomas Zimmermann (2):
  drm/amdgpu: Move test for fbdev GEM object into generic helper
  drm/radeon: Test for fbdev GEM object with generic helper

 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 21 +++------------
 drivers/gpu/drm/drm_fb_helper.c             | 29 +++++++++++++++++++++
 drivers/gpu/drm/radeon/radeon_device.c      |  7 ++---
 drivers/gpu/drm/radeon/radeon_fbdev.c       | 17 ------------
 drivers/gpu/drm/radeon/radeon_mode.h        |  5 ----
 include/drm/drm_fb_helper.h                 |  9 +++++++
 6 files changed, 45 insertions(+), 43 deletions(-)

-- 
2.53.0

Reply via email to