aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/b43/bus.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/drivers/net/wireless/b43/bus.c b/drivers/net/wireless/b43/bus.c
index a5e61a9fb539..64c3f65ff8c0 100644
--- a/drivers/net/wireless/b43/bus.c
+++ b/drivers/net/wireless/b43/bus.c
@@ -126,55 +126,52 @@ struct b43_bus_dev *b43_bus_dev_bcma_init(struct bcma_device *core)
126 126
127/* SSB */ 127/* SSB */
128#ifdef CONFIG_B43_SSB 128#ifdef CONFIG_B43_SSB
129static inline int b43_bus_ssb_bus_may_powerdown(struct b43_bus_dev *dev) 129static int b43_bus_ssb_bus_may_powerdown(struct b43_bus_dev *dev)
130{ 130{
131 return ssb_bus_may_powerdown(dev->sdev->bus); 131 return ssb_bus_may_powerdown(dev->sdev->bus);
132} 132}
133static inline int b43_bus_ssb_bus_powerup(struct b43_bus_dev *dev, 133static int b43_bus_ssb_bus_powerup(struct b43_bus_dev *dev,
134 bool dynamic_pctl) 134 bool dynamic_pctl)
135{ 135{
136 return ssb_bus_powerup(dev->sdev->bus, dynamic_pctl); 136 return ssb_bus_powerup(dev->sdev->bus, dynamic_pctl);
137} 137}
138static inline int b43_bus_ssb_device_is_enabled(struct b43_bus_dev *dev) 138static int b43_bus_ssb_device_is_enabled(struct b43_bus_dev *dev)
139{ 139{
140 return ssb_device_is_enabled(dev->sdev); 140 return ssb_device_is_enabled(dev->sdev);
141} 141}
142static inline void b43_bus_ssb_device_enable(struct b43_bus_dev *dev, 142static void b43_bus_ssb_device_enable(struct b43_bus_dev *dev,
143 u32 core_specific_flags) 143 u32 core_specific_flags)
144{ 144{
145 ssb_device_enable(dev->sdev, core_specific_flags); 145 ssb_device_enable(dev->sdev, core_specific_flags);
146} 146}
147static inline void b43_bus_ssb_device_disable(struct b43_bus_dev *dev, 147static void b43_bus_ssb_device_disable(struct b43_bus_dev *dev,
148 u32 core_specific_flags) 148 u32 core_specific_flags)
149{ 149{
150 ssb_device_disable(dev->sdev, core_specific_flags); 150 ssb_device_disable(dev->sdev, core_specific_flags);
151} 151}
152 152
153static inline u16 b43_bus_ssb_read16(struct b43_bus_dev *dev, u16 offset) 153static u16 b43_bus_ssb_read16(struct b43_bus_dev *dev, u16 offset)
154{ 154{
155 return ssb_read16(dev->sdev, offset); 155 return ssb_read16(dev->sdev, offset);
156} 156}
157static inline u32 b43_bus_ssb_read32(struct b43_bus_dev *dev, u16 offset) 157static u32 b43_bus_ssb_read32(struct b43_bus_dev *dev, u16 offset)
158{ 158{
159 return ssb_read32(dev->sdev, offset); 159 return ssb_read32(dev->sdev, offset);
160} 160}
161static inline 161static void b43_bus_ssb_write16(struct b43_bus_dev *dev, u16 offset, u16 value)
162void b43_bus_ssb_write16(struct b43_bus_dev *dev, u16 offset, u16 value)
163{ 162{
164 ssb_write16(dev->sdev, offset, value); 163 ssb_write16(dev->sdev, offset, value);
165} 164}
166static inline 165static void b43_bus_ssb_write32(struct b43_bus_dev *dev, u16 offset, u32 value)
167void b43_bus_ssb_write32(struct b43_bus_dev *dev, u16 offset, u32 value)
168{ 166{
169 ssb_write32(dev->sdev, offset, value); 167 ssb_write32(dev->sdev, offset, value);
170} 168}
171static inline 169static void b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer,
172void b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer, 170 size_t count, u16 offset, u8 reg_width)
173 size_t count, u16 offset, u8 reg_width)
174{ 171{
175 ssb_block_read(dev->sdev, buffer, count, offset, reg_width); 172 ssb_block_read(dev->sdev, buffer, count, offset, reg_width);
176} 173}
177static inline 174static
178void b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer, 175void b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer,
179 size_t count, u16 offset, u8 reg_width) 176 size_t count, u16 offset, u8 reg_width)
180{ 177{