summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/ast
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-10-17 11:32:03 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2023-10-19 14:55:26 +0300
commita075e1682fdeffdab80fa1cfb2f5f781f3c7c62a (patch)
tree30a6fc0114b7a59a9582800a14fed96235197f98 /drivers/gpu/drm/ast
parent7b0be4b94b693bc2d32a6f27d534995735bd8c95 (diff)
downloadlinux-a075e1682fdeffdab80fa1cfb2f5f781f3c7c62a.tar.xz
drm/ast: Rename AST_IO_DAC_DATA to AST_IO_VGAPDR
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
Diffstat (limited to 'drivers/gpu/drm/ast')
-rw-r--r--drivers/gpu/drm/ast/ast_drv.h2
-rw-r--r--drivers/gpu/drm/ast/ast_mode.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h
index 2b46fafd3467..43d1861d6262 100644
--- a/drivers/gpu/drm/ast/ast_drv.h
+++ b/drivers/gpu/drm/ast/ast_drv.h
@@ -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)
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index a719f6c9493d..fa21cdfd6c4f 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -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);
}