[PATCH 0/4] Removing unnecessary initialization of drm_plane struct type

Kevin Brace kevinbrace at gmx.com
Wed Jun 19 12:28:53 UTC 2019

From: Kevin Brace <kevinbrace at bracecomputerlab.com>

Patch 1 is to use uint32_t type for possible_crtcs.  Patch 2 through 4
removes unnecessary write to type field of drm_plane struct.
drm_universal_plane_init() initializes type field, so initializing it
outside of DRM core is unnecessary.  I have not tested the patches
myself since I do not have the equipment set up to run AMDGPU DRM.
I hope someone from AMD can test the patches.  Patch 2 through 4 do
depend on patch 1.

Kevin Brace (4):
  drm/amdgpu: uint32_t for amdgpu_dm_plane_init() possible_crtcs
  drm/amdgpu: Rename plane_type parameter of initialize_plane() to type
  drm/amdgpu: Add type parameter to amdgpu_dm_plane_init()
  drm/amdgpu: Remove unnecessary write to type field of drm_plane struct

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 20 ++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)


More information about the amd-gfx mailing list