diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-05-13 18:04:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-16 14:25:28 -0400 |
commit | dedb1eb977d75f301b17190cc4b6e7d17dbf17db (patch) | |
tree | f25491273b5f355198de93d011d08e0885f7e8d6 /drivers/net/wireless/b43/rfkill.c | |
parent | d0df9eecf9f61f70fd847656f5eb113e06e46a03 (diff) |
b43: rename b43_wldev's field with ssb_device to sdev
We free name "dev" for something generic (like dev abstraction layer).
Additionaly code is cleaner now, especially magic dev->dev-dev chains.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/rfkill.c')
-rw-r--r-- | drivers/net/wireless/b43/rfkill.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/rfkill.c b/drivers/net/wireless/b43/rfkill.c index 86bc0a0f735..a617efe3828 100644 --- a/drivers/net/wireless/b43/rfkill.c +++ b/drivers/net/wireless/b43/rfkill.c | |||
@@ -37,7 +37,7 @@ void b43_rfkill_poll(struct ieee80211_hw *hw) | |||
37 | { | 37 | { |
38 | struct b43_wl *wl = hw_to_b43_wl(hw); | 38 | struct b43_wl *wl = hw_to_b43_wl(hw); |
39 | struct b43_wldev *dev = wl->current_dev; | 39 | struct b43_wldev *dev = wl->current_dev; |
40 | struct ssb_bus *bus = dev->dev->bus; | 40 | struct ssb_bus *bus = dev->sdev->bus; |
41 | bool enabled; | 41 | bool enabled; |
42 | bool brought_up = false; | 42 | bool brought_up = false; |
43 | 43 | ||
@@ -47,7 +47,7 @@ void b43_rfkill_poll(struct ieee80211_hw *hw) | |||
47 | mutex_unlock(&wl->mutex); | 47 | mutex_unlock(&wl->mutex); |
48 | return; | 48 | return; |
49 | } | 49 | } |
50 | ssb_device_enable(dev->dev, 0); | 50 | ssb_device_enable(dev->sdev, 0); |
51 | brought_up = true; | 51 | brought_up = true; |
52 | } | 52 | } |
53 | 53 | ||
@@ -63,7 +63,7 @@ void b43_rfkill_poll(struct ieee80211_hw *hw) | |||
63 | } | 63 | } |
64 | 64 | ||
65 | if (brought_up) { | 65 | if (brought_up) { |
66 | ssb_device_disable(dev->dev, 0); | 66 | ssb_device_disable(dev->sdev, 0); |
67 | ssb_bus_may_powerdown(bus); | 67 | ssb_bus_may_powerdown(bus); |
68 | } | 68 | } |
69 | 69 | ||