Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: winbond: mto: avoided use of extern functions

Prototype of two functions added to the header to avoid the use of extern.

Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Iker Pedrosa and committed by
Greg Kroah-Hartman
46234cc5 7a0b6c62

+3 -5
+1 -3
drivers/staging/winbond/mto.c
··· 21 21 #include "wbhal.h" 22 22 #include "wb35reg_f.h" 23 23 #include "core.h" 24 + #include "mto.h" 24 25 25 26 /* Declare SQ3 to rate and fragmentation threshold table */ 26 27 /* Declare fragmentation threshold table */ ··· 45 44 static int retryrate_rec[MTO_MAX_DATA_RATE_LEVELS]; 46 45 47 46 static u8 boSparseTxTraffic; 48 - 49 - void MTO_Init(struct wbsoft_priv *adapter); 50 - void MTO_SetTxCount(struct wbsoft_priv *adapter, u8 t0, u8 index); 51 47 52 48 /* 53 49 * ===========================================================================
+2 -2
drivers/staging/winbond/mto.h
··· 127 127 #define MTO_DATA_RATE() MTO_Data_Rate_Tbl[MTO_RATE_LEVEL()] 128 128 #define MTO_FRAG_TH() MTO_Frag_Th_Tbl[MTO_FRAG_TH_LEVEL()] 129 129 130 - extern void MTO_Init(struct wbsoft_priv *); 130 + void MTO_Init(struct wbsoft_priv *); 131 + void MTO_SetTxCount(struct wbsoft_priv *adapter, u8 t0, u8 index); 131 132 extern void MTO_PeriodicTimerExpired(struct wbsoft_priv *); 132 133 extern void MTO_SetDTORateRange(struct wbsoft_priv *, u8 *, u8); 133 134 extern u8 MTO_GetTxRate(struct wbsoft_priv *adapter, u32 fpdu_len); 134 135 extern u8 MTO_GetTxFallbackRate(struct wbsoft_priv *adapter); 135 - extern void MTO_SetTxCount(struct wbsoft_priv *adapter, u8 t0, u8 index); 136 136 137 137 #endif /* __MTO_H__ */ 138 138