diff options
| author | Alex Deucher <[email protected]> | 2016-04-18 22:09:57 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-05-05 00:23:35 +0000 |
| commit | f195038c7ea5ae161652701de6ad7416fbe44d50 (patch) | |
| tree | 116cb8bad2787f3f81cc82d08850d0e85031c292 /drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |
| parent | drm/amdgpu: add ELM/BAF DCE11 configs (v2) (diff) | |
| download | kernel-f195038c7ea5ae161652701de6ad7416fbe44d50.tar.gz kernel-f195038c7ea5ae161652701de6ad7416fbe44d50.zip | |
drm/amdgpu: use defines for CRTCs and AMFT blocks
Prerequiste for the next patch which ups the limits.
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h index 8d432e6901af..e4da6daf128e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h @@ -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 */ |
