diff options
author | Richard Knutsson <ricknu-0@student.ltu.se> | 2007-02-12 03:55:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:42 -0500 |
commit | c30660ead2dd6ced47ac6ad4c099fb9305263ffb (patch) | |
tree | b85e8c6db87e0627924568ac6ad2b5d71965bcfb /drivers/video/sis/initextlfb.c | |
parent | 3aebbd8f92ef1aa3048800b4991db60403b85964 (diff) |
[PATCH] drivers/video/sis: Convert to generic boolean
Convert:
FALSE -> false
TRUE -> true
BOOLEAN -> bool
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Cc: Thomas Hellstrom <thomas@tungstengraphics.com>
Cc: James Simmons <jsimmons@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/sis/initextlfb.c')
-rw-r--r-- | drivers/video/sis/initextlfb.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/video/sis/initextlfb.c b/drivers/video/sis/initextlfb.c index c3884a29f4c5..47a33501549d 100644 --- a/drivers/video/sis/initextlfb.c +++ b/drivers/video/sis/initextlfb.c | |||
@@ -38,14 +38,14 @@ int sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr, | |||
38 | unsigned char modeno, unsigned char rateindex); | 38 | unsigned char modeno, unsigned char rateindex); |
39 | int sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno, | 39 | int sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno, |
40 | unsigned char rateindex, struct fb_var_screeninfo *var); | 40 | unsigned char rateindex, struct fb_var_screeninfo *var); |
41 | BOOLEAN sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, | 41 | bool sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, |
42 | int *htotal, int *vtotal, unsigned char rateindex); | 42 | int *htotal, int *vtotal, unsigned char rateindex); |
43 | 43 | ||
44 | extern BOOLEAN SiSInitPtr(struct SiS_Private *SiS_Pr); | 44 | extern bool SiSInitPtr(struct SiS_Private *SiS_Pr); |
45 | extern BOOLEAN SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, | 45 | extern bool SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, |
46 | unsigned short *ModeIdIndex); | 46 | unsigned short *ModeIdIndex); |
47 | extern void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, | 47 | extern void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, |
48 | int xres, int yres, struct fb_var_screeninfo *var, BOOLEAN writeres); | 48 | int xres, int yres, struct fb_var_screeninfo *var, bool writeres); |
49 | 49 | ||
50 | int | 50 | int |
51 | sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr, unsigned char modeno, | 51 | sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr, unsigned char modeno, |
@@ -131,7 +131,7 @@ sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno, | |||
131 | (unsigned char *)&SiS_Pr->SiS_CRT1Table[index].CR[0], | 131 | (unsigned char *)&SiS_Pr->SiS_CRT1Table[index].CR[0], |
132 | SiS_Pr->SiS_RefIndex[RRTI].XRes, | 132 | SiS_Pr->SiS_RefIndex[RRTI].XRes, |
133 | SiS_Pr->SiS_RefIndex[RRTI].YRes, | 133 | SiS_Pr->SiS_RefIndex[RRTI].YRes, |
134 | var, FALSE); | 134 | var, false); |
135 | 135 | ||
136 | if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x8000) | 136 | if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x8000) |
137 | var->sync &= ~FB_SYNC_VERT_HIGH_ACT; | 137 | var->sync &= ~FB_SYNC_VERT_HIGH_ACT; |
@@ -175,7 +175,7 @@ sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno, | |||
175 | return 1; | 175 | return 1; |
176 | } | 176 | } |
177 | 177 | ||
178 | BOOLEAN | 178 | bool |
179 | sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, | 179 | sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, |
180 | int *vtotal, unsigned char rateindex) | 180 | int *vtotal, unsigned char rateindex) |
181 | { | 181 | { |
@@ -184,7 +184,7 @@ sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *ht | |||
184 | unsigned short RRTI = 0; | 184 | unsigned short RRTI = 0; |
185 | unsigned char sr_data, cr_data, cr_data2; | 185 | unsigned char sr_data, cr_data, cr_data2; |
186 | 186 | ||
187 | if(!SiSInitPtr(SiS_Pr)) return FALSE; | 187 | if(!SiSInitPtr(SiS_Pr)) return false; |
188 | 188 | ||
189 | if(rateindex > 0) rateindex--; | 189 | if(rateindex > 0) rateindex--; |
190 | 190 | ||
@@ -195,7 +195,7 @@ sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *ht | |||
195 | } | 195 | } |
196 | #endif | 196 | #endif |
197 | 197 | ||
198 | if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return FALSE; | 198 | if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false; |
199 | 199 | ||
200 | RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; | 200 | RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; |
201 | if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { | 201 | if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { |
@@ -226,7 +226,7 @@ sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *ht | |||
226 | if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & InterlaceMode) | 226 | if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & InterlaceMode) |
227 | *vtotal *= 2; | 227 | *vtotal *= 2; |
228 | 228 | ||
229 | return TRUE; | 229 | return true; |
230 | } | 230 | } |
231 | 231 | ||
232 | 232 | ||