diff mbox

drm/radeon: use RADEON_MAX_CRTCS, RADEON_MAX_AFMT_BLOCKS

Message ID 1521754.KXZ0vs0P3x@appserver (mailing list archive)
State New, archived
Headers show

Commit Message

Stefan Brüns June 29, 2014, 7:02 p.m. UTC
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
---
 drivers/gpu/drm/radeon/radeon_mode.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Alex Deucher July 1, 2014, 3:45 p.m. UTC | #1
On Sun, Jun 29, 2014 at 3:02 PM, Stefan Brüns
<stefan.bruens@rwth-aachen.de> wrote:
>
> Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>

Both patches applied.  I've fixed this one to compile.  Please make
sure your patches compile.  thanks.

Alex

> ---
>  drivers/gpu/drm/radeon/radeon_mode.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h
> index ad0e4b8..79b8c7e 100644
> --- a/drivers/gpu/drm/radeon/radeon_mode.h
> +++ b/drivers/gpu/drm/radeon/radeon_mode.h
> @@ -233,8 +233,8 @@ struct radeon_mode_info {
>         struct card_info *atom_card_info;
>         enum radeon_connector_table connector_table;
>         bool mode_config_initialized;
> -       struct radeon_crtc *crtcs[6];
> -       struct radeon_afmt *afmt[7];
> +       struct radeon_crtc *crtcs[RADEON_MAX_CRTCS];
> +       struct radeon_afmt *afmt[RADEON_MAX_AFMT_BLOCKS];
>         /* DVI-I properties */
>         struct drm_property *coherent_mode_property;
>         /* DAC enable load detect */
> --
> 1.8.4.5
>
> --
> Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
> phone: +49 241 53809034     mobile: +49 151 50412019
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h
index ad0e4b8..79b8c7e 100644
--- a/drivers/gpu/drm/radeon/radeon_mode.h
+++ b/drivers/gpu/drm/radeon/radeon_mode.h
@@ -233,8 +233,8 @@  struct radeon_mode_info {
 	struct card_info *atom_card_info;
 	enum radeon_connector_table connector_table;
 	bool mode_config_initialized;
-	struct radeon_crtc *crtcs[6];
-	struct radeon_afmt *afmt[7];
+	struct radeon_crtc *crtcs[RADEON_MAX_CRTCS];
+	struct radeon_afmt *afmt[RADEON_MAX_AFMT_BLOCKS];
 	/* DVI-I properties */
 	struct drm_property *coherent_mode_property;
 	/* DAC enable load detect */