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>
This commit is contained in:

committed by
John W. Linville

parent
d0df9eecf9
commit
dedb1eb977
@@ -37,7 +37,7 @@ void b43_rfkill_poll(struct ieee80211_hw *hw)
|
||||
{
|
||||
struct b43_wl *wl = hw_to_b43_wl(hw);
|
||||
struct b43_wldev *dev = wl->current_dev;
|
||||
struct ssb_bus *bus = dev->dev->bus;
|
||||
struct ssb_bus *bus = dev->sdev->bus;
|
||||
bool enabled;
|
||||
bool brought_up = false;
|
||||
|
||||
@@ -47,7 +47,7 @@ void b43_rfkill_poll(struct ieee80211_hw *hw)
|
||||
mutex_unlock(&wl->mutex);
|
||||
return;
|
||||
}
|
||||
ssb_device_enable(dev->dev, 0);
|
||||
ssb_device_enable(dev->sdev, 0);
|
||||
brought_up = true;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ void b43_rfkill_poll(struct ieee80211_hw *hw)
|
||||
}
|
||||
|
||||
if (brought_up) {
|
||||
ssb_device_disable(dev->dev, 0);
|
||||
ssb_device_disable(dev->sdev, 0);
|
||||
ssb_bus_may_powerdown(bus);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user