drm/ast: Rename AST_IO_DAC_DATA to AST_IO_VGAPDR
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Oct 2023 08:32:03 +0000 (10:32 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 19 Oct 2023 11:55:26 +0000 (13:55 +0200)
Rename AST_IO_DAC_DATA to AST_IO_VGAPDR 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-8-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c

index 2b46fafd3467f8281866a173b9a779b83233a341..43d1861d626247898fbaaee76a52bdd20870b170 100644 (file)
@@ -265,7 +265,7 @@ static inline bool __ast_gen_is_eq(struct ast_device *ast, unsigned long gen)
 #define AST_IO_VGASRI                  (0x44)
 #define AST_IO_VGADRR                  (0x47)
 #define AST_IO_VGADWR                  (0x48)
-#define AST_IO_DAC_DATA                        (0x49)
+#define AST_IO_VGAPDR                  (0x49)
 #define AST_IO_GR_PORT                 (0x4E)
 #define AST_IO_CRTC_PORT               (0x54)
 #define AST_IO_INPUT_STATUS1_READ      (0x5A)
index a719f6c9493dc819407079838d21da7e2f9bbd65..fa21cdfd6c4f5ff3f700de5aa37368ea271bcc2e 100644 (file)
@@ -57,11 +57,11 @@ static inline void ast_load_palette_index(struct ast_device *ast,
 {
        ast_io_write8(ast, AST_IO_VGADWR, index);
        ast_io_read8(ast, AST_IO_VGASRI);
-       ast_io_write8(ast, AST_IO_DAC_DATA, red);
+       ast_io_write8(ast, AST_IO_VGAPDR, red);
        ast_io_read8(ast, AST_IO_VGASRI);
-       ast_io_write8(ast, AST_IO_DAC_DATA, green);
+       ast_io_write8(ast, AST_IO_VGAPDR, green);
        ast_io_read8(ast, AST_IO_VGASRI);
-       ast_io_write8(ast, AST_IO_DAC_DATA, blue);
+       ast_io_write8(ast, AST_IO_VGAPDR, blue);
        ast_io_read8(ast, AST_IO_VGASRI);
 }