[PATCH 1/4] drm/amdgpu: uint32_t for amdgpu_dm_plane_init() possible_crtcs parameter
Kevin Brace
kevinbrace at gmx.com
Wed Jun 19 12:28:54 UTC 2019
From: Kevin Brace <kevinbrace at bracecomputerlab.com>
possible_crtcs parameter of amdgpu_dm_plane_init() is an unsigned long
type, but the one drm_universal_plane_init() of DRM core has is a
uint32_t type. possible_crtcs parameter is ultimately passed over to
drm_universal_plane_init().
Signed-off-by: Kevin Brace <kevinbrace at bracecomputerlab.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 1854506e3e8f..7a54a9623b8f 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -111,7 +111,7 @@ amdgpu_dm_update_connector_after_detect(struct amdgpu_dm_connector *aconnector);
static int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm,
struct drm_plane *plane,
- unsigned long possible_crtcs,
+ uint32_t possible_crtcs,
const struct dc_plane_cap *plane_cap);
static int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm,
struct drm_plane *plane,
@@ -1989,7 +1989,7 @@ static int initialize_plane(struct amdgpu_display_manager *dm,
const struct dc_plane_cap *plane_cap)
{
struct drm_plane *plane;
- unsigned long possible_crtcs;
+ uint32_t possible_crtcs;
int ret = 0;
plane = kzalloc(sizeof(struct drm_plane), GFP_KERNEL);
@@ -4328,7 +4328,7 @@ static int get_plane_formats(const struct drm_plane *plane,
static int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm,
struct drm_plane *plane,
- unsigned long possible_crtcs,
+ uint32_t possible_crtcs,
const struct dc_plane_cap *plane_cap)
{
uint32_t formats[32];
--
2.17.1
More information about the amd-gfx
mailing list