staging: xgifb: Remove unnecessary externs
authorJoe Perches <joe@perches.com>
Mon, 10 Aug 2015 21:51:34 +0000 (14:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 01:51:56 +0000 (18:51 -0700)
Using 'extern' is not necessary for function prototypes.

Miscellanea:

o Reflow alignments

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_init.h
drivers/staging/xgifb/vb_setmode.h

index 24573026a7c07e917a396590ef28f8b0dc3d449c..500cabe41a3c59241c2dfa5a263cfb5b508f1263 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef _VBINIT_
 #define _VBINIT_
-extern unsigned char XGIInitNew(struct pci_dev *pdev);
-extern void XGIRegInit(struct vb_device_info *, unsigned long);
+unsigned char XGIInitNew(struct pci_dev *pdev);
+void XGIRegInit(struct vb_device_info *, unsigned long);
 #endif
 
index 5301bec6440d2be935b2d6c2dda56a9f3fd82c56..6f082a7a5a4a4c40238f7e05a93dc3af2c7bf975 100644 (file)
@@ -1,23 +1,23 @@
 #ifndef _VBSETMODE_
 #define _VBSETMODE_
 
-extern void InitTo330Pointer(unsigned char, struct vb_device_info *);
-extern void XGI_UnLockCRT2(struct vb_device_info *);
-extern void XGI_LockCRT2(struct vb_device_info *);
-extern void XGI_DisplayOff(struct xgifb_video_info *,
-                          struct xgi_hw_device_info *,
-                          struct vb_device_info *);
-extern void XGI_GetVBType(struct vb_device_info *);
-extern void XGI_SenseCRT1(struct vb_device_info *);
-extern unsigned char XGISetModeNew(struct xgifb_video_info *xgifb_info,
-                                  struct xgi_hw_device_info *HwDeviceExtension,
-                                  unsigned short ModeNo);
+void InitTo330Pointer(unsigned char, struct vb_device_info *);
+void XGI_UnLockCRT2(struct vb_device_info *);
+void XGI_LockCRT2(struct vb_device_info *);
+void XGI_DisplayOff(struct xgifb_video_info *,
+                   struct xgi_hw_device_info *,
+                   struct vb_device_info *);
+void XGI_GetVBType(struct vb_device_info *);
+void XGI_SenseCRT1(struct vb_device_info *);
+unsigned char XGISetModeNew(struct xgifb_video_info *xgifb_info,
+                           struct xgi_hw_device_info *HwDeviceExtension,
+                           unsigned short ModeNo);
 
-extern unsigned char XGI_SearchModeID(unsigned short ModeNo,
-                                     unsigned short *ModeIdIndex);
-extern unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE,
-                                        unsigned short ModeNo,
-                                        unsigned short ModeIdIndex,
-                                        struct vb_device_info *);
+unsigned char XGI_SearchModeID(unsigned short ModeNo,
+                              unsigned short *ModeIdIndex);
+unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE,
+                                 unsigned short ModeNo,
+                                 unsigned short ModeIdIndex,
+                                 struct vb_device_info *);
 
 #endif