[PATCH] USB: sisusbvga: possible cleanups
This patch contains the following possible cleanups: - make needlessly global functions static - function and struct declarations belong into header files - make SiS_VCLKData const - #if 0 the following unused global functions: - sisusb.c: sisusb_writew() - sisusb.c: sisusb_readw() - sisusb_init.c: SiSUSB_GetModeID() Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
2682d27c58
commit
df47e5330b
@@ -74,6 +74,7 @@ SiSUSB_InitPtr(struct SiS_Private *SiS_Pr)
|
||||
/* HELPER: Get ModeID */
|
||||
/*********************************************/
|
||||
|
||||
#if 0
|
||||
unsigned short
|
||||
SiSUSB_GetModeID(int HDisplay, int VDisplay, int Depth)
|
||||
{
|
||||
@@ -157,6 +158,7 @@ SiSUSB_GetModeID(int HDisplay, int VDisplay, int Depth)
|
||||
|
||||
return ModeIndex;
|
||||
}
|
||||
#endif /* 0 */
|
||||
|
||||
/*********************************************/
|
||||
/* HELPER: SetReg, GetReg */
|
||||
@@ -233,7 +235,7 @@ SiS_DisplayOn(struct SiS_Private *SiS_Pr)
|
||||
/* HELPER: Init Port Addresses */
|
||||
/*********************************************/
|
||||
|
||||
void
|
||||
static void
|
||||
SiSUSBRegInit(struct SiS_Private *SiS_Pr, unsigned long BaseAddr)
|
||||
{
|
||||
SiS_Pr->SiS_P3c4 = BaseAddr + 0x14;
|
||||
|
Reference in New Issue
Block a user