drivers/video/: more cleanups
Subsystems (2)
PATCH 1/1 drivers/video/: more cleanups
This patch contains cleanups including the following:
- make needlessly global code static
- remove the needlessly #ifdef MODULE from several module_exit
- remove or #if 0 the following unused global functions:
- fbmon.c: fb_create_modedb
- fbmon.c: fb_get_monitor_limits
- nvidia/nv_i2c.c: nvidia_delete_i2c_busses
- nvidia/nv_setup.c: NVEnablePalette
- nvidia/nv_setup.c: NVReadDacMask
- remove the following unneeded EXPORT_SYMBOL's:
- fbmon.c: fb_create_modedb
- fbmon.c: fb_get_monitor_limits
- hgafb.c: hgafb_setup
---
drivers/video/aty/aty128fb.c | 13 +--- drivers/video/aty/atyfb.h | 1 drivers/video/aty/atyfb_base.c | 14 ++--- drivers/video/aty/mach64_ct.c | 7 +- drivers/video/aty/mach64_cursor.c | 2 drivers/video/aty/radeon_base.c | 46 ++++++++--------- drivers/video/aty/radeon_pm.c | 4 - drivers/video/aty/radeonfb.h | 1 drivers/video/backlight/backlight.c | 2 drivers/video/backlight/lcd.c | 2 drivers/video/cyber2000fb.c | 6 +- drivers/video/fbmon.c | 14 ----- drivers/video/geode/gx1fb_core.c | 4 - drivers/video/hgafb.c | 14 +---- drivers/video/i810/i810_main.c | 2 drivers/video/imsttfb.c | 7 +- drivers/video/intelfb/intelfbdrv.c | 73 ++++++++++++---------------- drivers/video/neofb.c | 16 +++--- drivers/video/nvidia/nv_accel.c | 4 - drivers/video/nvidia/nv_i2c.c | 2 drivers/video/nvidia/nv_of.c | 1 drivers/video/nvidia/nv_proto.h | 5 - drivers/video/nvidia/nv_setup.c | 4 + drivers/video/nvidia/nvidia.c | 4 - drivers/video/pm2fb.c | 58 +++++++--------------- drivers/video/radeonfb.c | 44 +++++++--------- drivers/video/riva/fbdev.c | 8 +-- drivers/video/sis/init.c | 4 - drivers/video/sis/init.h | 3 - drivers/video/sis/init301.c | 9 +-- drivers/video/sis/init301.h | 3 - drivers/video/sis/sis_main.c | 5 + drivers/video/tdfxfb.c | 51 ++++++++----------- drivers/video/vesafb.c | 12 ---- drivers/video/vfb.c | 12 +--- include/linux/fb.h | 2 36 files changed, 193 insertions(+), 266 deletions(-)
drivers/video/aty/aty128fb.c renamed from drivers/video/aty/aty128fb.c.old +4 -9
@@ -425,11 +425,6 @@#define round_div (n, d) ((n+(d/2))/d) -/* -* Interface used by the world -*/ -int aty128fb_init (void ); -static int aty128fb_check_var (struct fb_var_screeninfo *var,struct fb_info *info);static int aty128fb_set_par (struct fb_info *info);
@@ -1648,7 +1643,8 @@return 0 ; } -int __init aty128fb_setup (char *options) +#ifndef MODULE +static int __init aty128fb_setup (char *options) {char *this_opt;
@@ -1701,6 +1697,7 @@ }return 0 ; } +#endif /* MODULE */ /*
@@ -2432,7 +2429,7 @@ } -int __init aty128fb_init (void ) +static int __init aty128fb_init (void ) {#ifndef MODULE char *option =NULL ;
@@ -2452,7 +2449,6 @@module_init (aty128fb_init); -#ifdef MODULE module_exit (aty128fb_exit);MODULE_AUTHOR ("(c)1999-2003 Brad Douglas <[email protected]>" );
@@ -2464,5 +2460,4 @@module_param_named (nomtrr, mtrr, invbool,0 );MODULE_PARM_DESC (nomtrr,"bool: Disable MTRR support (0 or 1=disabled) (default=0)" );#endif -#endif
drivers/video/aty/atyfb_base.c renamed from drivers/video/aty/atyfb_base.c.old +7 -7
@@ -265,7 +265,7 @@* Interface used by the world */ -struct fb_var_screeninfo default_var = { +static struct fb_var_screeninfo default_var = {/* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */ 640 ,480 ,640 ,480 ,0 ,0 ,8 ,0 , {0 ,8 ,0 }, {0 ,8 ,0 }, {0 ,8 ,0 }, {0 ,0 ,0 },
@@ -2990,7 +2990,7 @@ #ifdef __i386__ #ifdef CONFIG_FB_ATY_GENERIC_LCD -void aty_init_lcd(struct atyfb_par *par, u32 bios_base) +static void aty_init_lcd(struct atyfb_par *par, u32 bios_base) { u32 driv_inf_tab, sig; u16 lcd_ofs;
@@ -3589,7 +3589,8 @@#endif /* CONFIG_PCI */ -int __init atyfb_setup (char *options) +#ifndef MODULE +static int __init atyfb_setup (char *options) {char *this_opt;
@@ -3657,8 +3658,9 @@ }return 0 ; } +#endif /* MODULE */ -int __init atyfb_init (void ) +static int __init atyfb_init (void ) {#ifndef MODULE char *option =NULL ;
@@ -3677,7 +3679,7 @@return 0 ; } -void __exit atyfb_exit(void) +static void __exit atyfb_exit(void) {#ifdef CONFIG_PCI pci_unregister_driver (&atyfb_driver);
@@ -3685,9 +3687,7 @@ }module_init (atyfb_init); -#ifdef MODULE module_exit (atyfb_exit); -#endif MODULE_DESCRIPTION ("FBDev driver for ATI Mach64 cards" );MODULE_LICENSE ("GPL" );
drivers/video/aty/mach64_ct.c renamed from drivers/video/aty/mach64_ct.c.old +5 -2
@@ -359,7 +359,8 @@#endif } -void __init aty_get_pll_ct (const struct fb_info *info,union aty_pll *pll) +static void __init aty_get_pll_ct (const struct fb_info *info, +union aty_pll *pll) {struct atyfb_par *par = (struct atyfb_par *) info->par;u8 tmp, clock;
@@ -382,7 +383,9 @@ } } -int __init aty_init_pll_ct (const struct fb_info *info,union aty_pll *pll) { +staticint __init aty_init_pll_ct (const struct fb_info *info, +union aty_pll *pll) +{struct atyfb_par *par = (struct atyfb_par *) info->par;u8 mpost_div, xpost_div, sclk_post_div_real, sclk_fb_div, spll_cntl2;u32 q, i, memcntl, trp;
drivers/video/aty/atyfb.h renamed from drivers/video/aty/atyfb.h.old +0 -1
@@ -334,7 +334,6 @@*/ extern int aty_init_cursor (struct fb_info *info); -extern int atyfb_cursor (struct fb_info *info,struct fb_cursor *cursor);/* * Hardware acceleration
drivers/video/aty/mach64_cursor.c renamed from drivers/video/aty/mach64_cursor.c.old +1 -1
@@ -71,7 +71,7 @@ 0xa8, 0x28, 0x88, 0x08, 0xa0, 0x20, 0x80, 0x00 }; -int atyfb_cursor (struct fb_info *info,struct fb_cursor *cursor) +static int atyfb_cursor (struct fb_info *info,struct fb_cursor *cursor) {struct atyfb_par *par = (struct atyfb_par *) info->par;u16 xoff, yoff;
drivers/video/aty/radeonfb.h renamed from drivers/video/aty/radeonfb.h.old +0 -1
@@ -647,7 +647,6 @@/* Other functions */ extern int radeon_screen_blank (struct radeonfb_info *rinfo,int blank,int mode_switch); -extern void radeon_save_state (struct radeonfb_info *rinfo,struct radeon_regs *save);extern void radeon_write_mode (struct radeonfb_info *rinfo,struct radeon_regs *mode,int reg_only);
drivers/video/aty/radeon_base.c renamed from drivers/video/aty/radeon_base.c.old +22 -24
68 lines not on this page · raw message
drivers/video/aty/radeon_pm.c renamed from drivers/video/aty/radeon_pm.c.old +2 -2
@@ -27,7 +27,7 @@#include "ati_ids.h" -void radeon_pm_disable_dynamic_mode (struct radeonfb_info *rinfo) +static void radeon_pm_disable_dynamic_mode (struct radeonfb_info *rinfo) {u32 tmp;
@@ -229,7 +229,7 @@radeon_msleep (16 ); } -void radeon_pm_enable_dynamic_mode (struct radeonfb_info *rinfo) +static void radeon_pm_enable_dynamic_mode (struct radeonfb_info *rinfo) {u32 tmp;
drivers/video/backlight/backlight.c renamed from drivers/video/backlight/backlight.c.old +1 -1
@@ -111,7 +111,7 @@kfree (bd); } -struct class backlight_class = { +static struct class backlight_class = { .name ="backlight" , .release = backlight_class_release, };
drivers/video/backlight/lcd.c renamed from drivers/video/backlight/lcd.c.old +1 -1
@@ -111,7 +111,7 @@kfree (ld); } -struct class lcd_class = { +static struct class lcd_class = { .name ="lcd" , .release = lcd_class_release, };
drivers/video/cyber2000fb.c renamed from drivers/video/cyber2000fb.c.old +4 -2
@@ -1306,7 +1306,8 @@* Parse Cyber2000fb options. Usage: * video=cyber2000:font:fontname */ -int +#ifndef MODULE +static int cyber2000fb_setup (char *options) {char *opt;
@@ -1328,6 +1329,7 @@ }return 0 ; } +#endif /* MODULE */ /* * The CyberPro chips can be placed on many different bus types.
@@ -1717,7 +1719,7 @@* * Tony: "module_init" is now required */ -int __init cyber2000fb_init (void ) +static int __init cyber2000fb_init (void ) {int ret =-1 , err;
include/linux/fb.h renamed from include/linux/fb.h.old +0 -2
@@ -857,10 +857,8 @@extern int fb_validate_mode (const struct fb_var_screeninfo *var,struct fb_info *info);extern int fb_parse_edid (unsigned char *edid,struct fb_var_screeninfo *var); -extern int fb_get_monitor_limits (unsigned char *edid,struct fb_monspecs *specs);extern void fb_edid_to_monspecs (unsigned char *edid,struct fb_monspecs *specs);extern int fb_get_monitor_limits (unsigned char *edid,struct fb_monspecs *specs); -extern struct fb_videomode *fb_create_modedb (unsigned char *edid,int *dbsize);extern void fb_destroy_modedb (struct fb_videomode *modedb);/* drivers/video/modedb.c */
drivers/video/fbmon.c renamed from drivers/video/fbmon.c.old +2 -12
@@ -517,7 +517,7 @@* This function builds a mode database using the contents of the EDID * data */ -struct fb_videomode *fb_create_modedb (unsigned char *edid,int *dbsize) +static struct fb_videomode *fb_create_modedb (unsigned char *edid,int *dbsize) {struct fb_videomode *mode, *m;unsigned char *block;
@@ -592,7 +592,7 @@kfree (modedb); } -int fb_get_monitor_limits (unsigned char *edid,struct fb_monspecs *specs) +static int fb_get_monitor_limits (unsigned char *edid,struct fb_monspecs *specs) {int i, retval =1 ;unsigned char *block;
@@ -1180,17 +1180,9 @@ { specs =NULL ; } -struct fb_videomode *fb_create_modedb (unsigned char *edid,int *dbsize) -{ -return NULL ; -}void fb_destroy_modedb (struct fb_videomode *modedb) { } -int fb_get_monitor_limits (unsigned char *edid,struct fb_monspecs *specs) -{ -return 1 ; -}int fb_get_mode (int flags,u32 val,struct fb_var_screeninfo *var,struct fb_info *info) {
@@ -1264,6 +1256,4 @@EXPORT_SYMBOL (fb_get_mode);EXPORT_SYMBOL (fb_validate_mode); -EXPORT_SYMBOL (fb_create_modedb);EXPORT_SYMBOL (fb_destroy_modedb); -EXPORT_SYMBOL (fb_get_monitor_limits);
drivers/video/geode/gx1fb_core.c renamed from drivers/video/geode/gx1fb_core.c.old +2 -2
@@ -264,9 +264,9 @@ } -struct fb_info *gx1fb_info; +static struct fb_info *gx1fb_info; -int __init gx1fb_init (void ) +static int __init gx1fb_init (void ) {struct fb_info *info;struct geodefb_par *par;
drivers/video/hgafb.c renamed from drivers/video/hgafb.c.old +3 -11
@@ -412,7 +412,8 @@* A zero is returned on success and %-EINVAL for failure. */ -int hgafb_pan_display (struct fb_var_screeninfo *var,struct fb_info *info) +static int hgafb_pan_display (struct fb_var_screeninfo *var, +struct fb_info *info) {if (var->vmode &FB_VMODE_YWRAP ) { if (var->yoffset < 0 ||
@@ -548,7 +549,7 @@* Initialization */ -int __init hgafb_init (void ) +static int __init hgafb_init (void ) {if (fb_get_options ("hgafb" ,NULL ))return -ENODEV ;
@@ -587,15 +588,6 @@return 0 ; } -/* -* Setup -*/ - -int __init hgafb_setup (char *options) -{ -return 0 ; -} -#ifdef MODULE static void __exit hgafb_exit(void) {
drivers/video/i810/i810_main.c renamed from drivers/video/i810/i810_main.c.old +1 -1
@@ -1997,7 +1997,7 @@#ifdef MODULE -int __init i810fb_init (void ) +static int __init i810fb_init (void ) { hsync1 *=1000 ; hsync2 *=1000 ;
drivers/video/imsttfb.c renamed from drivers/video/imsttfb.c.old +3 -4
@@ -1547,7 +1547,7 @@ }#ifndef MODULE -int __init +static int __init imsttfb_setup (char *options) {char *this_opt;
@@ -1601,7 +1601,7 @@#endif /* MODULE */ -int __init imsttfb_init (void ) +static int __init imsttfb_init (void ) {#ifndef MODULE char *option =NULL ;
@@ -1619,9 +1619,8 @@pci_unregister_driver (&imsttfb_pci_driver); } -#ifdef MODULE MODULE_LICENSE ("GPL" ); -#endif +module_init (imsttfb_init);module_exit (imsttfb_exit);
drivers/video/intelfb/intelfbdrv.c renamed from drivers/video/intelfb/intelfbdrv.c.old +33 -40
94 lines not on this page · raw message
drivers/video/neofb.c renamed from drivers/video/neofb.c.old +9 -7
@@ -400,21 +400,21 @@*/ static int paletteEnabled =0 ; -inline void VGAenablePalette (void ) +static inline void VGAenablePalette (void ) {vga_r (NULL ,VGA_IS1_RC );vga_w (NULL ,VGA_ATT_W ,0x00 ); paletteEnabled =1 ; } -inline void VGAdisablePalette (void ) +static inline void VGAdisablePalette (void ) {vga_r (NULL ,VGA_IS1_RC );vga_w (NULL ,VGA_ATT_W ,0x20 ); paletteEnabled =0 ; } -inline void VGAwATTR (u8 index,u8 value) +static inline void VGAwATTR (u8 index,u8 value) {if (paletteEnabled) index &= ~0x20 ;
@@ -425,7 +425,7 @@vga_wattr (NULL , index, value); } -void vgaHWProtect (int on) +static void vgaHWProtect (int on) {unsigned char tmp;
@@ -1315,7 +1315,7 @@/* * (Un)Blank the display. */ -int neofb_blank (int blank_mode,struct fb_info *info) +static int neofb_blank (int blank_mode,struct fb_info *info) {/* * Blank the screen if blank_mode != 0, else unblank.
@@ -2230,7 +2230,8 @@/* ************************* init in-kernel code ************************** */ -int __init neofb_setup (char *options) +#ifndef MODULE +static int __init neofb_setup (char *options) {char *this_opt;
@@ -2258,8 +2259,9 @@ }return 0 ; } +#endif /* MODULE */ -int __init neofb_init (void ) +static int __init neofb_init (void ) {#ifndef MODULE char *option =NULL ;
drivers/video/nvidia/nv_accel.c renamed from drivers/video/nvidia/nv_accel.c.old +2 -2
@@ -55,7 +55,7 @@ } } -void NVDmaKickoff (struct nvidia_par *par) +static void NVDmaKickoff (struct nvidia_par *par) {if (par->dmaCurrent != par->dmaPut) { par->dmaPut = par->dmaCurrent;
@@ -63,7 +63,7 @@ } } -void NVDmaWait (struct nvidia_par *par,int size) +static void NVDmaWait (struct nvidia_par *par,int size) {int dmaGet;int count =1000000000 , cnt;
drivers/video/nvidia/nv_proto.h renamed from drivers/video/nvidia/nv_proto.h.old +0 -5
@@ -15,10 +15,7 @@u8 NVReadAttr (struct nvidia_par *par,u8 index);void NVWriteMiscOut (struct nvidia_par *par,u8 value);u8 NVReadMiscOut (struct nvidia_par *par); -void NVEnablePalette (struct nvidia_par *par); -void NVDisablePalette (struct nvidia_par *par);void NVWriteDacMask (struct nvidia_par *par,u8 value); -u8 NVReadDacMask (struct nvidia_par *par);void NVWriteDacReadAddr (struct nvidia_par *par,u8 value);void NVWriteDacWriteAddr (struct nvidia_par *par,u8 value);void NVWriteDacData (struct nvidia_par *par,u8 value);
@@ -36,12 +33,10 @@/* in nvidia-i2c.c */ #if defined(CONFIG_FB_NVIDIA_I2C ) || defined (CONFIG_PPC_OF )void nvidia_create_i2c_busses (struct nvidia_par *par); -void nvidia_delete_i2c_busses (struct nvidia_par *par);int nvidia_probe_i2c_connector (struct nvidia_par *par,int conn,u8 ** out_edid);#else #define nvidia_create_i2c_busses (...) -#define nvidia_delete_i2c_busses (...)#define nvidia_probe_i2c_connector (p, c, edid) \ do { \ *(edid) = NULL; \
drivers/video/nvidia/nv_i2c.c renamed from drivers/video/nvidia/nv_i2c.c.old +2 -0
@@ -143,6 +143,7 @@nvidia_setup_i2c_bus (&par->chan[2 ],"BUS3" ); } +#if 0 void nvidia_delete_i2c_busses (struct nvidia_par *par) {if (par->chan[0 ].par)
@@ -158,6 +159,7 @@ par->chan[2].par = NULL; } +#endif /* 0 */ static u8 *nvidia_do_probe_i2c_edid (struct nvidia_i2c_chan *chan) {
drivers/video/nvidia/nv_of.c renamed from drivers/video/nvidia/nv_of.c.old +0 -1
@@ -28,7 +28,6 @@#include "nv_proto.h" void nvidia_create_i2c_busses (struct nvidia_par *par) {} -void nvidia_delete_i2c_busses (struct nvidia_par *par) {}int nvidia_probe_i2c_connector (struct nvidia_par *par,int conn,u8 **out_edid) {
drivers/video/nvidia/nv_setup.c renamed from drivers/video/nvidia/nv_setup.c.old +4 -0
@@ -108,6 +108,7 @@ {return (VGA_RD08 (par->PVIO,VGA_MIS_R )); } +#if 0 void NVEnablePalette (struct nvidia_par *par) {volatile u8 tmp;
@@ -124,14 +125,17 @@VGA_WR08 (par->PCIO,VGA_ATT_IW ,0x20 ); par->paletteEnabled = 0; } +#endif /* 0 */ void NVWriteDacMask (struct nvidia_par *par,u8 value) {VGA_WR08 (par->PDIO,VGA_PEL_MSK , value); } +#if 0 u8 NVReadDacMask (struct nvidia_par *par) {return (VGA_RD08 (par->PDIO,VGA_PEL_MSK )); } +#endif /* 0 */ void NVWriteDacReadAddr (struct nvidia_par *par,u8 value) {VGA_WR08 (par->PDIO,VGA_PEL_IR , value);
drivers/video/nvidia/nvidia.c renamed from drivers/video/nvidia/nvidia.c.old +2 -2
@@ -1613,7 +1613,7 @@* ------------------------------------------------------------------------- */ #ifndef MODULE -int __init nvidiafb_setup (char *options) +static int __init nvidiafb_setup (char *options) {char *this_opt;
@@ -1666,7 +1666,7 @@* * ------------------------------------------------------------------------- */ -int __devinit nvidiafb_init (void ) +static int __devinit nvidiafb_init (void ) {#ifndef MODULE char *option =NULL ;
drivers/video/pm2fb.c renamed from drivers/video/pm2fb.c.old +20 -38
80 lines not on this page · raw message
drivers/video/radeonfb.c renamed from drivers/video/radeonfb.c.old +20 -24
60 lines not on this page · raw message
drivers/video/riva/fbdev.c renamed from drivers/video/riva/fbdev.c.old +4 -4
@@ -906,7 +906,7 @@ }/* acceleration routines */ -inline void wait_for_idle (struct riva_par *par) +static inline void wait_for_idle (struct riva_par *par) {while (par->riva.Busy (&par->riva)); }
@@ -923,7 +923,7 @@ } -void riva_setup_accel (struct fb_info *info) +static void riva_setup_accel (struct fb_info *info) {struct riva_par *par = (struct riva_par *) info->par;
@@ -2139,7 +2139,7 @@* ------------------------------------------------------------------------- */ #ifndef MODULE -int __init rivafb_setup (char *options) +static int __init rivafb_setup (char *options) {char *this_opt;
@@ -2189,7 +2189,7 @@* * ------------------------------------------------------------------------- */ -int __devinit rivafb_init (void ) +static int __devinit rivafb_init (void ) {#ifndef MODULE char *option =NULL ;
drivers/video/sis/init.h renamed from drivers/video/sis/init.h.old +0 -3
@@ -2394,11 +2394,9 @@void SiS_DisplayOn (SiS_Private *SiS_Pr);void SiS_DisplayOff (SiS_Private *SiS_Pr);void SiSRegInit (SiS_Private *SiS_Pr,SISIOADDRESS BaseAddr); -void SiSSetLVDSetc (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo);BOOLEAN SiSDetermineROMLayout661 (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo);void SiS_SetEnableDstn (SiS_Private *SiS_Pr,int enable);void SiS_SetEnableFstn (SiS_Private *SiS_Pr,int enable); -void SiS_GetVBType (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo);BOOLEAN SiS_SearchModeID (SiS_Private *SiS_Pr,USHORT *ModeNo,USHORT *ModeIdIndex);UCHAR SiS_GetModePtr (SiS_Private *SiS_Pr,USHORT ModeNo,USHORT ModeIdIndex);USHORT SiS_GetColorDepth (SiS_Private *SiS_Pr,USHORT ModeNo,USHORT ModeIdIndex);
@@ -2444,7 +2442,6 @@extern void SiS_SetYPbPr (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo);extern void SiS_SetTVMode (SiS_Private *SiS_Pr,USHORT ModeNo,USHORT ModeIdIndex,PSIS_HW_INFO HwInfo);extern void SiS_UnLockCRT2 (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo); -extern void SiS_LockCRT2 (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo);extern void SiS_DisableBridge (SiS_Private *,PSIS_HW_INFO );extern BOOLEAN SiS_SetCRT2Group (SiS_Private *,PSIS_HW_INFO ,USHORT ); extern USHORT SiS_GetRatePtr(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex,
drivers/video/sis/init.c renamed from drivers/video/sis/init.c.old +2 -2
@@ -1384,7 +1384,7 @@/* HELPER: SetLVDSetc */ /*********************************************/ -void +static void SiSSetLVDSetc (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo) {USHORT temp;
@@ -1625,7 +1625,7 @@/* HELPER: GetVBType */ /*********************************************/ -void +static void SiS_GetVBType (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo) {USHORT flag=0 , rev=0 , nolcd=0 , p4_0f, p4_25, p4_27;
drivers/video/sis/init301.h renamed from drivers/video/sis/init301.h.old +0 -3
@@ -310,7 +310,6 @@ USHORT RefreshRateTableIndex, PSIS_HW_INFO HwInfo);USHORT SiS_GetResInfo (SiS_Private *SiS_Pr,USHORT ModeNo,USHORT ModeIdIndex);void SiS_DisableBridge (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo); -void SiS_EnableBridge (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo);BOOLEAN SiS_SetCRT2Group (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo,USHORT ModeNo);void SiS_SiS30xBLOn (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo);void SiS_SiS30xBLOff (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo);
@@ -319,8 +318,6 @@USHORT SiS_GetCH700x (SiS_Private *SiS_Pr,USHORT tempax);void SiS_SetCH701x (SiS_Private *SiS_Pr,USHORT tempax);USHORT SiS_GetCH701x (SiS_Private *SiS_Pr,USHORT tempax); -void SiS_SetCH70xx (SiS_Private *SiS_Pr,USHORT tempax); -USHORT SiS_GetCH70xx (SiS_Private *SiS_Pr,USHORT tempax);void SiS_SetCH70xxANDOR (SiS_Private *SiS_Pr,USHORT tempax,USHORT tempbh);#ifdef SIS315H static void SiS_Chrontel701xOn (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo);
drivers/video/sis/init301.c renamed from drivers/video/sis/init301.c.old +5 -4
@@ -86,6 +86,7 @@#define SiS_I2CDELAYSHORT 150static USHORT SiS_GetBIOSLCDResInfo (SiS_Private *SiS_Pr); +static void SiS_SetCH70xx (SiS_Private *SiS_Pr,USHORT tempbx);/*********************************************/ /* HELPER: Lock/Unlock CRT2 */
@@ -100,7 +101,7 @@SiS_SetRegOR (SiS_Pr->SiS_Part1Port,0x24 ,0x01 ); } -void +static void SiS_LockCRT2 (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo) {if (HwInfo->jChipType >=SIS_315H )
@@ -4236,7 +4237,7 @@* from outside the context of a mode switch! * MUST call getVBType before calling this */ -void +static void SiS_EnableBridge (SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo) {USHORT temp=0 ,tempah;
@@ -9219,7 +9220,7 @@SiS_SetChReg (SiS_Pr, tempbx,0 ); } -void +static void SiS_SetCH70xx (SiS_Private *SiS_Pr,USHORT tempbx) {if (SiS_Pr->SiS_IF_DEF_CH70xx ==1 )
@@ -9323,7 +9324,7 @@/* Read from Chrontel 70xx */ /* Parameter is [Register no (S7-S0)] */ -USHORT +static USHORT SiS_GetCH70xx (SiS_Private *SiS_Pr,USHORT tempbx) {if (SiS_Pr->SiS_IF_DEF_CH70xx ==1 )
drivers/video/sis/sis_main.c renamed from drivers/video/sis/sis_main.c.old +3 -2
@@ -4762,7 +4762,8 @@#endif -int __devinit sisfb_probe (struct pci_dev *pdev,const struct pci_device_id *ent) +static int __devinit sisfb_probe (struct pci_dev *pdev, +const struct pci_device_id *ent) {struct sisfb_chip_info *chipinfo = &sisfb_chip_info[ent->driver_data];struct sis_video_info *ivideo =NULL ;
@@ -5940,7 +5941,7 @@#endif #endif -int __init sisfb_init_module (void ) +static int __init sisfb_init_module (void ) {sisfb_setdefaultparms ();
drivers/video/tdfxfb.c renamed from drivers/video/tdfxfb.c.old +23 -28
72 lines not on this page · raw message
drivers/video/vesafb.c renamed from drivers/video/vesafb.c.old +2 -10
@@ -185,7 +185,7 @@ .fb_cursor = soft_cursor, }; -int __init vesafb_setup (char *options) +static int __init vesafb_setup (char *options) {char *this_opt;
@@ -434,7 +434,7 @@ .name = "vesafb", }; -int __init vesafb_init (void ) +static int __init vesafb_init (void ) {int ret;char *option =NULL ;
@@ -453,12 +453,4 @@ }module_init (vesafb_init); -/* -* Overrides for Emacs so that we follow Linus's tabbing style. -* --------------------------------------------------------------------------- -* Local variables: -* c-basic-offset: 8 -* End: -*/ -MODULE_LICENSE ("GPL" );
drivers/video/vfb.c renamed from drivers/video/vfb.c.old +4 -8
@@ -72,12 +72,6 @@static int vfb_enable__initdata =0 ;/* disabled by default */ module_param (vfb_enable, bool,0 ); -/* -* Interface used by the world -*/ -int vfb_init (void ); -int vfb_setup (char *); -static int vfb_check_var (struct fb_var_screeninfo *var,struct fb_info *info);static int vfb_set_par (struct fb_info *info);
@@ -379,7 +373,8 @@return -EINVAL ; } -int __init vfb_setup (char *options) +#ifndef MODULE +static int __init vfb_setup (char *options) {char *this_opt;
@@ -396,6 +391,7 @@ }return 1 ; } +#endif /* MODULE */ /* * Initialisation
@@ -492,7 +488,7 @@ } }; -int __init vfb_init (void ) +static int __init vfb_init (void ) {int ret =0 ;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 1 line · Adrian Bunk
This patch contains cleanups including the following:
Are you cleaning up all of that annoying trailing whitespace too? It is always giving me problems on diffs.
Signature · 9 lines
Jon Smirl [email protected] ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 5 lines · Jon Smirl
Quoted 1 line · Adrian Bunk
This patch contains cleanups including the following:
Are you cleaning up all of that annoying trailing whitespace too? It is always giving me problems on diffs.
I'm not the maintainer, and such a cleanup might break all pending patches.
Antonino, any opinions on such cleanups?
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 6 lines · Adrian Bunk
Quoted 4 lines · Jon Smirl
Quoted 1 line · Adrian Bunk
This patch contains cleanups including the following:
Quoted 7 lines
Quoted 2 lines
Are you cleaning up all of that annoying trailing whitespace too? It is always giving me problems on diffs.
I'm not the maintainer, and such a cleanup might break all pending patches.
Antonino, any opinions on such cleanups?
Should be a separate patch usually... if Antonio is OK with it at all.
Signature · 1 line
~Randy
Quoted 11 lines · Adrian Bunk
Quoted 5 lines · Jon Smirl
Quoted 1 line · Adrian Bunk
This patch contains cleanups including the following:
Are you cleaning up all of that annoying trailing whitespace too? It is always giving me problems on diffs.
I'm not the maintainer, and such a cleanup might break all pending patches.
Antonino, any opinions on such cleanups?
Just whitespace cleanup, no. However, they can be piggy-backed on other patches, but only on the sections affected.
Tony