diff options
author | Ana Rey <anarey@gmail.com> | 2014-03-19 07:47:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-19 12:36:25 -0400 |
commit | 2cc817c09e30e56da3a54e3183dc178927d5b5e2 (patch) | |
tree | d42c25941e29a4b8b8cdaba6d3301c338813c84d | |
parent | 280c4c8f9978ec6ee6bb57d21ba46d97048b4c95 (diff) |
staging: rtl8192u: make in r819xU_firmware.c some local functions static
Make some local functions static (firmware_init_param, fw_download_code,
CPUcheck_maincodeok_turnonCPU and CPUcheck_firmware_ready) and fix
coding style in these function declarations when It is necessary.
Fixed the following sparse warnings in r819xU_firmware.c
CHECK drivers/staging/rtl8192u/r819xU_firmware.c
drivers/staging/rtl8192u/r819xU_firmware.c:20:6: warning: symbol 'firmware_init_param' was not declared. Should it be static?
drivers/staging/rtl8192u/r819xU_firmware.c:32:6: warning: symbol 'fw_download_code' was not declared. Should it be static?
drivers/staging/rtl8192u/r819xU_firmware.c:159:6: warning: symbol 'CPUcheck_maincodeok_turnonCPU' was not declared. Should it be static?
drivers/staging/rtl8192u/r819xU_firmware.c:208:6: warning: symbol 'CPUcheck_firmware_ready' was not declared. Should it be static?
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8192u/r819xU_firmware.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/rtl8192u/r819xU_firmware.c b/drivers/staging/rtl8192u/r819xU_firmware.c index d6a6de3a64f5..edb842cf2d9e 100644 --- a/drivers/staging/rtl8192u/r819xU_firmware.c +++ b/drivers/staging/rtl8192u/r819xU_firmware.c | |||
@@ -17,7 +17,8 @@ | |||
17 | #include "r819xU_firmware_img.h" | 17 | #include "r819xU_firmware_img.h" |
18 | #include "r819xU_firmware.h" | 18 | #include "r819xU_firmware.h" |
19 | #include <linux/firmware.h> | 19 | #include <linux/firmware.h> |
20 | void firmware_init_param(struct net_device *dev) | 20 | |
21 | static void firmware_init_param(struct net_device *dev) | ||
21 | { | 22 | { |
22 | struct r8192_priv *priv = ieee80211_priv(dev); | 23 | struct r8192_priv *priv = ieee80211_priv(dev); |
23 | rt_firmware *pfirmware = priv->pFirmware; | 24 | rt_firmware *pfirmware = priv->pFirmware; |
@@ -29,7 +30,8 @@ void firmware_init_param(struct net_device *dev) | |||
29 | * segment the img and use the ptr and length to remember info on each segment | 30 | * segment the img and use the ptr and length to remember info on each segment |
30 | * | 31 | * |
31 | */ | 32 | */ |
32 | bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, u32 buffer_len) | 33 | static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, |
34 | u32 buffer_len) | ||
33 | { | 35 | { |
34 | struct r8192_priv *priv = ieee80211_priv(dev); | 36 | struct r8192_priv *priv = ieee80211_priv(dev); |
35 | bool rt_status = true; | 37 | bool rt_status = true; |
@@ -156,7 +158,7 @@ fwSendNullPacket( | |||
156 | // NDIS_STATUS_FAILURE - the following initialization process should be terminated | 158 | // NDIS_STATUS_FAILURE - the following initialization process should be terminated |
157 | // NDIS_STATUS_SUCCESS - if firmware initialization process success | 159 | // NDIS_STATUS_SUCCESS - if firmware initialization process success |
158 | //----------------------------------------------------------------------------- | 160 | //----------------------------------------------------------------------------- |
159 | bool CPUcheck_maincodeok_turnonCPU(struct net_device *dev) | 161 | static bool CPUcheck_maincodeok_turnonCPU(struct net_device *dev) |
160 | { | 162 | { |
161 | bool rt_status = true; | 163 | bool rt_status = true; |
162 | int check_putcodeOK_time = 200000, check_bootOk_time = 200000; | 164 | int check_putcodeOK_time = 200000, check_bootOk_time = 200000; |
@@ -205,7 +207,7 @@ CPUCheckMainCodeOKAndTurnOnCPU_Fail: | |||
205 | return rt_status; | 207 | return rt_status; |
206 | } | 208 | } |
207 | 209 | ||
208 | bool CPUcheck_firmware_ready(struct net_device *dev) | 210 | static bool CPUcheck_firmware_ready(struct net_device *dev) |
209 | { | 211 | { |
210 | 212 | ||
211 | bool rt_status = true; | 213 | bool rt_status = true; |