]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: use defines for CRTCs and AMFT blocks
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Apr 2016 22:09:57 +0000 (18:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Apr 2016 00:03:45 +0000 (20:03 -0400)
Prerequiste for the next patch which ups the limits.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h

index 8d432e6901af50d2267089757685f2e6f16f4f40..e4da6daf128e1b291aa80abdbefcc3073b1bc732 100644 (file)
@@ -309,8 +309,8 @@ struct amdgpu_mode_info {
        struct atom_context *atom_context;
        struct card_info *atom_card_info;
        bool mode_config_initialized;
-       struct amdgpu_crtc *crtcs[6];
-       struct amdgpu_afmt *afmt[7];
+       struct amdgpu_crtc *crtcs[AMDGPU_MAX_CRTCS];
+       struct amdgpu_afmt *afmt[AMDGPU_MAX_AFMT_BLOCKS];
        /* DVI-I properties */
        struct drm_property *coherent_mode_property;
        /* DAC enable load detect */