drm/ast: Rename AST_IO_GR_PORT to AST_IO_VGAGRI
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Oct 2023 08:32:04 +0000 (10:32 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 19 Oct 2023 11:55:30 +0000 (13:55 +0200)
Rename AST_IO_GR_PORT to AST_IO_VGAGRI to align naming
in the driver with documentation. No functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231017083653.10063-9-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c

index 43d1861d626247898fbaaee76a52bdd20870b170..86860ab54711368af675770dd6c81d5436f8ec9b 100644 (file)
@@ -266,7 +266,7 @@ static inline bool __ast_gen_is_eq(struct ast_device *ast, unsigned long gen)
 #define AST_IO_VGADRR                  (0x47)
 #define AST_IO_VGADWR                  (0x48)
 #define AST_IO_VGAPDR                  (0x49)
-#define AST_IO_GR_PORT                 (0x4E)
+#define AST_IO_VGAGRI                  (0x4E)
 #define AST_IO_CRTC_PORT               (0x54)
 #define AST_IO_INPUT_STATUS1_READ      (0x5A)
 #define AST_IO_MISC_PORT_READ          (0x4C)
index fa21cdfd6c4f5ff3f700de5aa37368ea271bcc2e..19dc050d6e8159e3298eb90888636d756f6e424d 100644 (file)
@@ -332,7 +332,7 @@ static void ast_set_std_reg(struct ast_device *ast,
 
        /* Set GR */
        for (i = 0; i < 9; i++)
-               ast_set_index_reg(ast, AST_IO_GR_PORT, i, stdtable->gr[i]);
+               ast_set_index_reg(ast, AST_IO_VGAGRI, i, stdtable->gr[i]);
 }
 
 static void ast_set_crtc_reg(struct ast_device *ast,