aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/tridentfb.c
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2008-07-24 00:30:53 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 13:47:35 -0400
commite0759a5fbba12e0f2c9149d85bea1ec7df0178fd (patch)
tree4bd8e62eefb57379cb152c641622f8ebb04ac119 /drivers/video/tridentfb.c
parent6eed8e1ec8532a6cd10c8b27236bde023c52c56a (diff)
tridentfb: convert is_blade and is_xp macros into functions
This patch converts the is_blade() and is_xp() macros into local functions. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/tridentfb.c')
-rw-r--r--drivers/video/tridentfb.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c
index 604b10a590da..e87f77093ec1 100644
--- a/drivers/video/tridentfb.c
+++ b/drivers/video/tridentfb.c
@@ -78,6 +78,25 @@ MODULE_PARM_DESC(fp, "Define if flatpanel is connected");
78module_param(crt, int, 0); 78module_param(crt, int, 0);
79MODULE_PARM_DESC(crt, "Define if CRT is connected"); 79MODULE_PARM_DESC(crt, "Define if CRT is connected");
80 80
81static int is_blade(int id)
82{
83 return (id == BLADE3D) ||
84 (id == CYBERBLADEE4) ||
85 (id == CYBERBLADEi7) ||
86 (id == CYBERBLADEi7D) ||
87 (id == CYBERBLADEi1) ||
88 (id == CYBERBLADEi1D) ||
89 (id == CYBERBLADEAi1) ||
90 (id == CYBERBLADEAi1D);
91}
92
93static int is_xp(int id)
94{
95 return (id == CYBERBLADEXPAi1) ||
96 (id == CYBERBLADEXPm8) ||
97 (id == CYBERBLADEXPm16);
98}
99
81static int is3Dchip(int id) 100static int is3Dchip(int id)
82{ 101{
83 return ((id == BLADE3D) || (id == CYBERBLADEE4) || 102 return ((id == BLADE3D) || (id == CYBERBLADEE4) ||