]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/ast: Rename AST_IO_AR_PORT_WRITE to AST_IO_VGAARI_W
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Oct 2023 08:31:57 +0000 (10:31 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 19 Oct 2023 11:54:43 +0000 (13:54 +0200)
Rename AST_IO_AR_PORT_WRITE to AST_IO_VGAARI_W 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-2-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c

index 848a9f1403e89681d2bb5c48d3cf4e3680fed119..3d64dc356d699ad87a8d8d9f58f48f2d5f775ecf 100644 (file)
@@ -259,7 +259,7 @@ static inline bool __ast_gen_is_eq(struct ast_device *ast, unsigned long gen)
 #define IS_AST_GEN6(__ast)     __ast_gen_is_eq(__ast, 6)
 #define IS_AST_GEN7(__ast)     __ast_gen_is_eq(__ast, 7)
 
-#define AST_IO_AR_PORT_WRITE           (0x40)
+#define AST_IO_VGAARI_W                        (0x40)
 #define AST_IO_MISC_PORT_WRITE         (0x42)
 #define AST_IO_VGA_ENABLE_PORT         (0x43)
 #define AST_IO_SEQ_PORT                        (0x44)
index 32f04ec6c386fa31f015728deb3eac0783585bc6..1ccbfdf27356ee602618b651d3c20eeeec525603 100644 (file)
@@ -321,14 +321,14 @@ static void ast_set_std_reg(struct ast_device *ast,
        jreg = ast_io_read8(ast, AST_IO_INPUT_STATUS1_READ);
        for (i = 0; i < 20; i++) {
                jreg = stdtable->ar[i];
-               ast_io_write8(ast, AST_IO_AR_PORT_WRITE, (u8)i);
-               ast_io_write8(ast, AST_IO_AR_PORT_WRITE, jreg);
+               ast_io_write8(ast, AST_IO_VGAARI_W, (u8)i);
+               ast_io_write8(ast, AST_IO_VGAARI_W, jreg);
        }
-       ast_io_write8(ast, AST_IO_AR_PORT_WRITE, 0x14);
-       ast_io_write8(ast, AST_IO_AR_PORT_WRITE, 0x00);
+       ast_io_write8(ast, AST_IO_VGAARI_W, 0x14);
+       ast_io_write8(ast, AST_IO_VGAARI_W, 0x00);
 
        jreg = ast_io_read8(ast, AST_IO_INPUT_STATUS1_READ);
-       ast_io_write8(ast, AST_IO_AR_PORT_WRITE, 0x20);
+       ast_io_write8(ast, AST_IO_VGAARI_W, 0x20);
 
        /* Set GR */
        for (i = 0; i < 9; i++)