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/init.h | |
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/init.h')
-rw-r--r-- | drivers/video/sis/init.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/video/sis/init.h b/drivers/video/sis/init.h index 59d12844b4dd..f40a680df86f 100644 --- a/drivers/video/sis/init.h +++ b/drivers/video/sis/init.h | |||
@@ -1521,13 +1521,13 @@ static const struct SiS_LVDSCRT1Data SiS_LVDSCRT1640x480_1_H[] = | |||
1521 | 0x00}} | 1521 | 0x00}} |
1522 | }; | 1522 | }; |
1523 | 1523 | ||
1524 | BOOLEAN SiSInitPtr(struct SiS_Private *SiS_Pr); | 1524 | bool SiSInitPtr(struct SiS_Private *SiS_Pr); |
1525 | #ifdef SIS_XORG_XF86 | 1525 | #ifdef SIS_XORG_XF86 |
1526 | unsigned short SiS_GetModeID(int VGAEngine, unsigned int VBFlags, int HDisplay, int VDisplay, | 1526 | unsigned short SiS_GetModeID(int VGAEngine, unsigned int VBFlags, int HDisplay, int VDisplay, |
1527 | int Depth, BOOLEAN FSTN, int LCDwith, int LCDheight); | 1527 | int Depth, bool FSTN, int LCDwith, int LCDheight); |
1528 | #endif | 1528 | #endif |
1529 | unsigned short SiS_GetModeID_LCD(int VGAEngine, unsigned int VBFlags, int HDisplay, | 1529 | unsigned short SiS_GetModeID_LCD(int VGAEngine, unsigned int VBFlags, int HDisplay, |
1530 | int VDisplay, int Depth, BOOLEAN FSTN, | 1530 | int VDisplay, int Depth, bool FSTN, |
1531 | unsigned short CustomT, int LCDwith, int LCDheight, | 1531 | unsigned short CustomT, int LCDwith, int LCDheight, |
1532 | unsigned int VBFlags2); | 1532 | unsigned int VBFlags2); |
1533 | unsigned short SiS_GetModeID_TV(int VGAEngine, unsigned int VBFlags, int HDisplay, | 1533 | unsigned short SiS_GetModeID_TV(int VGAEngine, unsigned int VBFlags, int HDisplay, |
@@ -1558,12 +1558,12 @@ void SiS_SetEnableDstn(struct SiS_Private *SiS_Pr, int enable); | |||
1558 | void SiS_SetEnableFstn(struct SiS_Private *SiS_Pr, int enable); | 1558 | void SiS_SetEnableFstn(struct SiS_Private *SiS_Pr, int enable); |
1559 | unsigned short SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo, | 1559 | unsigned short SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo, |
1560 | unsigned short ModeIdIndex); | 1560 | unsigned short ModeIdIndex); |
1561 | BOOLEAN SiSDetermineROMLayout661(struct SiS_Private *SiS_Pr); | 1561 | bool SiSDetermineROMLayout661(struct SiS_Private *SiS_Pr); |
1562 | #ifndef SIS_LINUX_KERNEL | 1562 | #ifndef SIS_LINUX_KERNEL |
1563 | void SiS_GetVBType(struct SiS_Private *SiS_Pr); | 1563 | void SiS_GetVBType(struct SiS_Private *SiS_Pr); |
1564 | #endif | 1564 | #endif |
1565 | 1565 | ||
1566 | BOOLEAN SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, | 1566 | bool SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, |
1567 | unsigned short *ModeIdIndex); | 1567 | unsigned short *ModeIdIndex); |
1568 | unsigned short SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, | 1568 | unsigned short SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, |
1569 | unsigned short ModeIdIndex); | 1569 | unsigned short ModeIdIndex); |
@@ -1581,17 +1581,17 @@ unsigned short SiS_GetLatencyFactor630(struct SiS_Private *SiS_Pr, unsigned shor | |||
1581 | #endif | 1581 | #endif |
1582 | void SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex); | 1582 | void SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex); |
1583 | #ifdef SIS_XORG_XF86 | 1583 | #ifdef SIS_XORG_XF86 |
1584 | BOOLEAN SiSSetMode(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, unsigned short ModeNo, | 1584 | bool SiSSetMode(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, unsigned short ModeNo, |
1585 | BOOLEAN dosetpitch); | 1585 | bool dosetpitch); |
1586 | BOOLEAN SiSBIOSSetMode(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, | 1586 | bool SiSBIOSSetMode(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, |
1587 | DisplayModePtr mode, BOOLEAN IsCustom); | 1587 | DisplayModePtr mode, bool IsCustom); |
1588 | BOOLEAN SiSBIOSSetModeCRT2(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, | 1588 | bool SiSBIOSSetModeCRT2(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, |
1589 | DisplayModePtr mode, BOOLEAN IsCustom); | 1589 | DisplayModePtr mode, bool IsCustom); |
1590 | BOOLEAN SiSBIOSSetModeCRT1(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, | 1590 | bool SiSBIOSSetModeCRT1(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, |
1591 | DisplayModePtr mode, BOOLEAN IsCustom); | 1591 | DisplayModePtr mode, bool IsCustom); |
1592 | #endif | 1592 | #endif |
1593 | #ifdef SIS_LINUX_KERNEL | 1593 | #ifdef SIS_LINUX_KERNEL |
1594 | BOOLEAN SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo); | 1594 | bool SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo); |
1595 | #endif | 1595 | #endif |
1596 | void SiS_CalcCRRegisters(struct SiS_Private *SiS_Pr, int depth); | 1596 | void SiS_CalcCRRegisters(struct SiS_Private *SiS_Pr, int depth); |
1597 | void SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo, | 1597 | void SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo, |
@@ -1602,7 +1602,7 @@ void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdat | |||
1602 | #endif | 1602 | #endif |
1603 | #ifdef SIS_LINUX_KERNEL | 1603 | #ifdef SIS_LINUX_KERNEL |
1604 | void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, int xres, | 1604 | void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, int xres, |
1605 | int yres, struct fb_var_screeninfo *var, BOOLEAN writeres); | 1605 | int yres, struct fb_var_screeninfo *var, bool writeres); |
1606 | #endif | 1606 | #endif |
1607 | 1607 | ||
1608 | /* From init301.c: */ | 1608 | /* From init301.c: */ |
@@ -1615,7 +1615,7 @@ extern void SiS_SetTVMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo, | |||
1615 | unsigned short ModeIdIndex); | 1615 | unsigned short ModeIdIndex); |
1616 | extern void SiS_UnLockCRT2(struct SiS_Private *SiS_Pr); | 1616 | extern void SiS_UnLockCRT2(struct SiS_Private *SiS_Pr); |
1617 | extern void SiS_DisableBridge(struct SiS_Private *); | 1617 | extern void SiS_DisableBridge(struct SiS_Private *); |
1618 | extern BOOLEAN SiS_SetCRT2Group(struct SiS_Private *, unsigned short); | 1618 | extern bool SiS_SetCRT2Group(struct SiS_Private *, unsigned short); |
1619 | extern unsigned short SiS_GetRatePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, | 1619 | extern unsigned short SiS_GetRatePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, |
1620 | unsigned short ModeIdIndex); | 1620 | unsigned short ModeIdIndex); |
1621 | extern void SiS_WaitRetrace1(struct SiS_Private *SiS_Pr); | 1621 | extern void SiS_WaitRetrace1(struct SiS_Private *SiS_Pr); |
@@ -1624,8 +1624,8 @@ extern unsigned short SiS_GetResInfo(struct SiS_Private *SiS_Pr, unsigned short | |||
1624 | extern unsigned short SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempax); | 1624 | extern unsigned short SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempax); |
1625 | extern unsigned short SiS_GetVCLK2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, | 1625 | extern unsigned short SiS_GetVCLK2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, |
1626 | unsigned short ModeIdIndex, unsigned short RRTI); | 1626 | unsigned short ModeIdIndex, unsigned short RRTI); |
1627 | extern BOOLEAN SiS_IsVAMode(struct SiS_Private *); | 1627 | extern bool SiS_IsVAMode(struct SiS_Private *); |
1628 | extern BOOLEAN SiS_IsDualEdge(struct SiS_Private *); | 1628 | extern bool SiS_IsDualEdge(struct SiS_Private *); |
1629 | 1629 | ||
1630 | #ifdef SIS_XORG_XF86 | 1630 | #ifdef SIS_XORG_XF86 |
1631 | /* From other modules: */ | 1631 | /* From other modules: */ |