aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/b43.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-05-13 18:04:38 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-05-16 14:25:28 -0400
commitdedb1eb977d75f301b17190cc4b6e7d17dbf17db (patch)
treef25491273b5f355198de93d011d08e0885f7e8d6 /drivers/net/wireless/b43/b43.h
parentd0df9eecf9f61f70fd847656f5eb113e06e46a03 (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/b43.h')
-rw-r--r--drivers/net/wireless/b43/b43.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h
index bd4cb75b6ca3..fd69d6ae6b88 100644
--- a/drivers/net/wireless/b43/b43.h
+++ b/drivers/net/wireless/b43/b43.h
@@ -705,7 +705,7 @@ enum {
705 705
706/* Data structure for one wireless device (802.11 core) */ 706/* Data structure for one wireless device (802.11 core) */
707struct b43_wldev { 707struct b43_wldev {
708 struct ssb_device *dev; 708 struct ssb_device *sdev;
709 struct b43_wl *wl; 709 struct b43_wl *wl;
710 710
711 /* The device initialization status. 711 /* The device initialization status.
@@ -879,22 +879,22 @@ static inline enum ieee80211_band b43_current_band(struct b43_wl *wl)
879 879
880static inline u16 b43_read16(struct b43_wldev *dev, u16 offset) 880static inline u16 b43_read16(struct b43_wldev *dev, u16 offset)
881{ 881{
882 return ssb_read16(dev->dev, offset); 882 return ssb_read16(dev->sdev, offset);
883} 883}
884 884
885static inline void b43_write16(struct b43_wldev *dev, u16 offset, u16 value) 885static inline void b43_write16(struct b43_wldev *dev, u16 offset, u16 value)
886{ 886{
887 ssb_write16(dev->dev, offset, value); 887 ssb_write16(dev->sdev, offset, value);
888} 888}
889 889
890static inline u32 b43_read32(struct b43_wldev *dev, u16 offset) 890static inline u32 b43_read32(struct b43_wldev *dev, u16 offset)
891{ 891{
892 return ssb_read32(dev->dev, offset); 892 return ssb_read32(dev->sdev, offset);
893} 893}
894 894
895static inline void b43_write32(struct b43_wldev *dev, u16 offset, u32 value) 895static inline void b43_write32(struct b43_wldev *dev, u16 offset, u32 value)
896{ 896{
897 ssb_write32(dev->dev, offset, value); 897 ssb_write32(dev->sdev, offset, value);
898} 898}
899 899
900static inline bool b43_using_pio_transfers(struct b43_wldev *dev) 900static inline bool b43_using_pio_transfers(struct b43_wldev *dev)