aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Brivio <stefano.brivio@polimi.it>2007-11-06 16:48:25 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:29 -0500
commit33a3dc9328ce3a89d3490a47197851f5dac4b6b5 (patch)
tree2ba4a1ced7a287cdb7adde14df5bb3b25ae4c0a3
parent0a6e1bee5770a6d4c4569a4720614402ab5f9d7a (diff)
b43legacy: use a consistent naming scheme for the ops
Use a consistent naming scheme for the ops. The patch to b43 by Michael Buesch <mb@bu3sch.de> has been ported to b43legacy. Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/b43legacy/main.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c
index c9fe09dda941..8133efa5a57e 100644
--- a/drivers/net/wireless/b43legacy/main.c
+++ b/drivers/net/wireless/b43legacy/main.c
@@ -2285,9 +2285,9 @@ static int b43legacy_rng_init(struct b43legacy_wl *wl)
2285 return err; 2285 return err;
2286} 2286}
2287 2287
2288static int b43legacy_tx(struct ieee80211_hw *hw, 2288static int b43legacy_op_tx(struct ieee80211_hw *hw,
2289 struct sk_buff *skb, 2289 struct sk_buff *skb,
2290 struct ieee80211_tx_control *ctl) 2290 struct ieee80211_tx_control *ctl)
2291{ 2291{
2292 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 2292 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
2293 struct b43legacy_wldev *dev = wl->current_dev; 2293 struct b43legacy_wldev *dev = wl->current_dev;
@@ -2311,15 +2311,15 @@ out:
2311 return NETDEV_TX_OK; 2311 return NETDEV_TX_OK;
2312} 2312}
2313 2313
2314static int b43legacy_conf_tx(struct ieee80211_hw *hw, 2314static int b43legacy_op_conf_tx(struct ieee80211_hw *hw,
2315 int queue, 2315 int queue,
2316 const struct ieee80211_tx_queue_params *params) 2316 const struct ieee80211_tx_queue_params *params)
2317{ 2317{
2318 return 0; 2318 return 0;
2319} 2319}
2320 2320
2321static int b43legacy_get_tx_stats(struct ieee80211_hw *hw, 2321static int b43legacy_op_get_tx_stats(struct ieee80211_hw *hw,
2322 struct ieee80211_tx_queue_stats *stats) 2322 struct ieee80211_tx_queue_stats *stats)
2323{ 2323{
2324 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 2324 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
2325 struct b43legacy_wldev *dev = wl->current_dev; 2325 struct b43legacy_wldev *dev = wl->current_dev;
@@ -2341,8 +2341,8 @@ out:
2341 return err; 2341 return err;
2342} 2342}
2343 2343
2344static int b43legacy_get_stats(struct ieee80211_hw *hw, 2344static int b43legacy_op_get_stats(struct ieee80211_hw *hw,
2345 struct ieee80211_low_level_stats *stats) 2345 struct ieee80211_low_level_stats *stats)
2346{ 2346{
2347 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 2347 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
2348 unsigned long flags; 2348 unsigned long flags;
@@ -2491,8 +2491,8 @@ static int b43legacy_antenna_from_ieee80211(u8 antenna)
2491 } 2491 }
2492} 2492}
2493 2493
2494static int b43legacy_dev_config(struct ieee80211_hw *hw, 2494static int b43legacy_op_dev_config(struct ieee80211_hw *hw,
2495 struct ieee80211_conf *conf) 2495 struct ieee80211_conf *conf)
2496{ 2496{
2497 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 2497 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
2498 struct b43legacy_wldev *dev; 2498 struct b43legacy_wldev *dev;
@@ -2595,11 +2595,11 @@ out_unlock_mutex:
2595 return err; 2595 return err;
2596} 2596}
2597 2597
2598static void b43legacy_configure_filter(struct ieee80211_hw *hw, 2598static void b43legacy_op_configure_filter(struct ieee80211_hw *hw,
2599 unsigned int changed, 2599 unsigned int changed,
2600 unsigned int *fflags, 2600 unsigned int *fflags,
2601 int mc_count, 2601 int mc_count,
2602 struct dev_addr_list *mc_list) 2602 struct dev_addr_list *mc_list)
2603{ 2603{
2604 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 2604 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
2605 struct b43legacy_wldev *dev = wl->current_dev; 2605 struct b43legacy_wldev *dev = wl->current_dev;
@@ -2634,9 +2634,9 @@ static void b43legacy_configure_filter(struct ieee80211_hw *hw,
2634 spin_unlock_irqrestore(&wl->irq_lock, flags); 2634 spin_unlock_irqrestore(&wl->irq_lock, flags);
2635} 2635}
2636 2636
2637static int b43legacy_config_interface(struct ieee80211_hw *hw, 2637static int b43legacy_op_config_interface(struct ieee80211_hw *hw,
2638 int if_id, 2638 int if_id,
2639 struct ieee80211_if_conf *conf) 2639 struct ieee80211_if_conf *conf)
2640{ 2640{
2641 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 2641 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
2642 struct b43legacy_wldev *dev = wl->current_dev; 2642 struct b43legacy_wldev *dev = wl->current_dev;
@@ -3144,8 +3144,8 @@ err_kfree_lo_control:
3144 return err; 3144 return err;
3145} 3145}
3146 3146
3147static int b43legacy_add_interface(struct ieee80211_hw *hw, 3147static int b43legacy_op_add_interface(struct ieee80211_hw *hw,
3148 struct ieee80211_if_init_conf *conf) 3148 struct ieee80211_if_init_conf *conf)
3149{ 3149{
3150 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 3150 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
3151 struct b43legacy_wldev *dev; 3151 struct b43legacy_wldev *dev;
@@ -3184,8 +3184,8 @@ static int b43legacy_add_interface(struct ieee80211_hw *hw,
3184 return err; 3184 return err;
3185} 3185}
3186 3186
3187static void b43legacy_remove_interface(struct ieee80211_hw *hw, 3187static void b43legacy_op_remove_interface(struct ieee80211_hw *hw,
3188 struct ieee80211_if_init_conf *conf) 3188 struct ieee80211_if_init_conf *conf)
3189{ 3189{
3190 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 3190 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
3191 struct b43legacy_wldev *dev = wl->current_dev; 3191 struct b43legacy_wldev *dev = wl->current_dev;
@@ -3209,7 +3209,7 @@ static void b43legacy_remove_interface(struct ieee80211_hw *hw,
3209 mutex_unlock(&wl->mutex); 3209 mutex_unlock(&wl->mutex);
3210} 3210}
3211 3211
3212static int b43legacy_start(struct ieee80211_hw *hw) 3212static int b43legacy_op_start(struct ieee80211_hw *hw)
3213{ 3213{
3214 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 3214 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
3215 struct b43legacy_wldev *dev = wl->current_dev; 3215 struct b43legacy_wldev *dev = wl->current_dev;
@@ -3240,7 +3240,7 @@ out_mutex_unlock:
3240 return err; 3240 return err;
3241} 3241}
3242 3242
3243static void b43legacy_stop(struct ieee80211_hw *hw) 3243static void b43legacy_op_stop(struct ieee80211_hw *hw)
3244{ 3244{
3245 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); 3245 struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
3246 struct b43legacy_wldev *dev = wl->current_dev; 3246 struct b43legacy_wldev *dev = wl->current_dev;
@@ -3275,17 +3275,17 @@ out_unlock:
3275} 3275}
3276 3276
3277static const struct ieee80211_ops b43legacy_hw_ops = { 3277static const struct ieee80211_ops b43legacy_hw_ops = {
3278 .tx = b43legacy_tx, 3278 .tx = b43legacy_op_tx,
3279 .conf_tx = b43legacy_conf_tx, 3279 .conf_tx = b43legacy_op_conf_tx,
3280 .add_interface = b43legacy_add_interface, 3280 .add_interface = b43legacy_op_add_interface,
3281 .remove_interface = b43legacy_remove_interface, 3281 .remove_interface = b43legacy_op_remove_interface,
3282 .config = b43legacy_dev_config, 3282 .config = b43legacy_op_dev_config,
3283 .config_interface = b43legacy_config_interface, 3283 .config_interface = b43legacy_op_config_interface,
3284 .configure_filter = b43legacy_configure_filter, 3284 .configure_filter = b43legacy_op_configure_filter,
3285 .get_stats = b43legacy_get_stats, 3285 .get_stats = b43legacy_op_get_stats,
3286 .get_tx_stats = b43legacy_get_tx_stats, 3286 .get_tx_stats = b43legacy_op_get_tx_stats,
3287 .start = b43legacy_start, 3287 .start = b43legacy_op_start,
3288 .stop = b43legacy_stop, 3288 .stop = b43legacy_op_stop,
3289 .set_retry_limit = b43legacy_op_set_retry_limit, 3289 .set_retry_limit = b43legacy_op_set_retry_limit,
3290}; 3290};
3291 3291