Commit ba51b3ed authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/ast: Rename AST_IO_VGA_ENABLE_PORT to AST_IO_VGAER

Rename AST_IO_VGA_ENABLE_PORT to AST_IO_VGAER to align naming
in the driver with documentation. No functional changes.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarJocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231017083653.10063-4-tzimmermann@suse.de
parent b3945edd
...@@ -261,7 +261,7 @@ static inline bool __ast_gen_is_eq(struct ast_device *ast, unsigned long gen) ...@@ -261,7 +261,7 @@ static inline bool __ast_gen_is_eq(struct ast_device *ast, unsigned long gen)
#define AST_IO_VGAARI_W (0x40) #define AST_IO_VGAARI_W (0x40)
#define AST_IO_VGAMR_W (0x42) #define AST_IO_VGAMR_W (0x42)
#define AST_IO_VGA_ENABLE_PORT (0x43) #define AST_IO_VGAER (0x43)
#define AST_IO_SEQ_PORT (0x44) #define AST_IO_SEQ_PORT (0x44)
#define AST_IO_DAC_INDEX_READ (0x47) #define AST_IO_DAC_INDEX_READ (0x47)
#define AST_IO_DAC_INDEX_WRITE (0x48) #define AST_IO_DAC_INDEX_WRITE (0x48)
......
...@@ -40,7 +40,7 @@ static bool ast_is_vga_enabled(struct drm_device *dev) ...@@ -40,7 +40,7 @@ static bool ast_is_vga_enabled(struct drm_device *dev)
struct ast_device *ast = to_ast_device(dev); struct ast_device *ast = to_ast_device(dev);
u8 ch; u8 ch;
ch = ast_io_read8(ast, AST_IO_VGA_ENABLE_PORT); ch = ast_io_read8(ast, AST_IO_VGAER);
return !!(ch & 0x01); return !!(ch & 0x01);
} }
...@@ -49,7 +49,7 @@ static void ast_enable_vga(struct drm_device *dev) ...@@ -49,7 +49,7 @@ static void ast_enable_vga(struct drm_device *dev)
{ {
struct ast_device *ast = to_ast_device(dev); struct ast_device *ast = to_ast_device(dev);
ast_io_write8(ast, AST_IO_VGA_ENABLE_PORT, 0x01); ast_io_write8(ast, AST_IO_VGAER, 0x01);
ast_io_write8(ast, AST_IO_VGAMR_W, 0x01); ast_io_write8(ast, AST_IO_VGAMR_W, 0x01);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment