diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-01-28 11:26:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:19:11 -0500 |
commit | e226868ec3f3f98544ed2e6e7af7b6b8a629f492 (patch) | |
tree | 5d1ca322bfbe5fa5b6a7089ac674459a2c176fd2 /drivers | |
parent | 52507c20870dbd58921b42b801f0a92fc057221b (diff) |
libertas: make lbs_sync_channel() static
... by moving it into the file where it's sole user resides
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 11 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/assoc.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 14 |
3 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 4360deac943..75f6191e718 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c | |||
@@ -181,17 +181,6 @@ int lbs_update_channel(struct lbs_private *priv) | |||
181 | return ret; | 181 | return ret; |
182 | } | 182 | } |
183 | 183 | ||
184 | void lbs_sync_channel(struct work_struct *work) | ||
185 | { | ||
186 | struct lbs_private *priv = container_of(work, struct lbs_private, | ||
187 | sync_channel); | ||
188 | |||
189 | lbs_deb_enter(LBS_DEB_ASSOC); | ||
190 | if (lbs_update_channel(priv)) | ||
191 | lbs_pr_info("Channel synchronization failed."); | ||
192 | lbs_deb_leave(LBS_DEB_ASSOC); | ||
193 | } | ||
194 | |||
195 | static int assoc_helper_channel(struct lbs_private *priv, | 184 | static int assoc_helper_channel(struct lbs_private *priv, |
196 | struct assoc_request * assoc_req) | 185 | struct assoc_request * assoc_req) |
197 | { | 186 | { |
diff --git a/drivers/net/wireless/libertas/assoc.h b/drivers/net/wireless/libertas/assoc.h index 08372bbf376..d489cf4cc1e 100644 --- a/drivers/net/wireless/libertas/assoc.h +++ b/drivers/net/wireless/libertas/assoc.h | |||
@@ -7,6 +7,5 @@ | |||
7 | 7 | ||
8 | void lbs_association_worker(struct work_struct *work); | 8 | void lbs_association_worker(struct work_struct *work); |
9 | struct assoc_request *lbs_get_association_request(struct lbs_private *priv); | 9 | struct assoc_request *lbs_get_association_request(struct lbs_private *priv); |
10 | void lbs_sync_channel(struct work_struct *work); | ||
11 | 10 | ||
12 | #endif /* _LBS_ASSOC_H */ | 11 | #endif /* _LBS_ASSOC_H */ |
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 4d4e2f3b66a..2e5bac826c4 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -985,6 +985,18 @@ out: | |||
985 | lbs_deb_leave(LBS_DEB_CMD); | 985 | lbs_deb_leave(LBS_DEB_CMD); |
986 | } | 986 | } |
987 | 987 | ||
988 | static void lbs_sync_channel_worker(struct work_struct *work) | ||
989 | { | ||
990 | struct lbs_private *priv = container_of(work, struct lbs_private, | ||
991 | sync_channel); | ||
992 | |||
993 | lbs_deb_enter(LBS_DEB_MAIN); | ||
994 | if (lbs_update_channel(priv)) | ||
995 | lbs_pr_info("Channel synchronization failed."); | ||
996 | lbs_deb_leave(LBS_DEB_MAIN); | ||
997 | } | ||
998 | |||
999 | |||
988 | static int lbs_init_adapter(struct lbs_private *priv) | 1000 | static int lbs_init_adapter(struct lbs_private *priv) |
989 | { | 1001 | { |
990 | size_t bufsize; | 1002 | size_t bufsize; |
@@ -1128,7 +1140,7 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev) | |||
1128 | priv->work_thread = create_singlethread_workqueue("lbs_worker"); | 1140 | priv->work_thread = create_singlethread_workqueue("lbs_worker"); |
1129 | INIT_DELAYED_WORK(&priv->assoc_work, lbs_association_worker); | 1141 | INIT_DELAYED_WORK(&priv->assoc_work, lbs_association_worker); |
1130 | INIT_DELAYED_WORK(&priv->scan_work, lbs_scan_worker); | 1142 | INIT_DELAYED_WORK(&priv->scan_work, lbs_scan_worker); |
1131 | INIT_WORK(&priv->sync_channel, lbs_sync_channel); | 1143 | INIT_WORK(&priv->sync_channel, lbs_sync_channel_worker); |
1132 | 1144 | ||
1133 | sprintf(priv->mesh_ssid, "mesh"); | 1145 | sprintf(priv->mesh_ssid, "mesh"); |
1134 | priv->mesh_ssid_len = 4; | 1146 | priv->mesh_ssid_len = 4; |