Browse Source

Staging: winbond: wb35reg: avoided use of extern function

Prototype of a function added to the header to avoid the use of extern.

Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Iker Pedrosa 12 years ago
parent
commit
717d812fb2
2 changed files with 2 additions and 2 deletions
  1. 1 0
      drivers/staging/winbond/phy_calibration.h
  2. 1 2
      drivers/staging/winbond/wb35reg.c

+ 1 - 0
drivers/staging/winbond/phy_calibration.h

@@ -79,6 +79,7 @@
 #define SHIFT_IQCAL_TONE_Q(x)	((x) >> 13)
 
 void phy_set_rf_data(struct hw_data *pHwData, u32 index, u32 value);
+void phy_calibration_winbond(struct hw_data *phw_data, u32 frequency);
 #define phy_init_rf(_A)		/* RFSynthesizer_initial(_A) */
 
 #endif

+ 1 - 2
drivers/staging/winbond/wb35reg.c

@@ -1,10 +1,9 @@
 #include "wb35reg_f.h"
+#include "phy_calibration.h"
 
 #include <linux/usb.h>
 #include <linux/slab.h>
 
-extern void phy_calibration_winbond(struct hw_data *phw_data, u32 frequency);
-
 /*
  * true  : read command process successfully
  * false : register not support