summaryrefslogtreecommitdiff
path: root/src/ast_mode.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2014-04-24 17:25:03 +0200
committerEgbert Eich <eich@freedesktop.org>2014-04-30 17:25:24 +0200
commita833ba0b6cd6b6a449ddfed0b4753bc6f8dcb305 (patch)
tree5fae2682cd787c66ca33ea37c10f6efbd54b3781 /src/ast_mode.c
parente87938b319fd864f3f65527240d45a8ae234193f (diff)
Clean up namespace in ast_vgatools.c
- Make local functions static This sometimes helps the compiler to optimize. - Make sure exported functions have 'AST' in their name. This avoids name space conflicts with the server or other drivers. - Place declaration of exported functions in a header file. This ensures that changes to the function type or arguments are followed thru everywhere. Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
Diffstat (limited to 'src/ast_mode.c')
-rw-r--r--src/ast_mode.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ast_mode.c b/src/ast_mode.c
index 8c3d828..14dcc8c 100644
--- a/src/ast_mode.c
+++ b/src/ast_mode.c
@@ -53,9 +53,6 @@
/* Driver specific headers */
#include "ast.h"
-/* external reference fucntion */
-extern Bool bInitAST1180(ScrnInfoPtr pScrn);
-
VBIOS_STDTABLE_STRUCT StdTable[] = {
/* MD_2_3_400 */
{
@@ -410,11 +407,6 @@ VBIOS_DAC_INFO DAC_VGA[] = {
};
/* extern. function */
-extern void vASTOpenKey(ScrnInfoPtr pScrn);
-extern Bool bASTRegInit(ScrnInfoPtr pScrn);
-extern void vAST1000DisplayOn(ScrnInfoPtr pScrn);
-extern void vAST1000DisplayOff(ScrnInfoPtr pScrn);
-
extern Bool bEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST);
extern void vDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST);
@@ -450,7 +442,7 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
/* set mode */
if (pAST->jChipType == AST1180)
{
- bInitAST1180(pScrn);
+ bASTInitAST1180(pScrn);
bSetAST1180CRTCReg(pScrn, mode, &vgamodeinfo);
bSetAST1180OffsetReg(pScrn, mode, &vgamodeinfo);