diff options
-rw-r--r-- | drivers/net/wireless/b43/bus.c | 27 |
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 |
129 | static inline int b43_bus_ssb_bus_may_powerdown(struct b43_bus_dev *dev) | 129 | static 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 | } |
133 | static inline int b43_bus_ssb_bus_powerup(struct b43_bus_dev *dev, | 133 | static 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 | } |
138 | static inline int b43_bus_ssb_device_is_enabled(struct b43_bus_dev *dev) | 138 | static 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 | } |
142 | static inline void b43_bus_ssb_device_enable(struct b43_bus_dev *dev, | 142 | static 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 | } |
147 | static inline void b43_bus_ssb_device_disable(struct b43_bus_dev *dev, | 147 | static 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 | ||
153 | static inline u16 b43_bus_ssb_read16(struct b43_bus_dev *dev, u16 offset) | 153 | static 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 | } |
157 | static inline u32 b43_bus_ssb_read32(struct b43_bus_dev *dev, u16 offset) | 157 | static 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 | } |
161 | static inline | 161 | static void b43_bus_ssb_write16(struct b43_bus_dev *dev, u16 offset, u16 value) |
162 | void 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 | } |
166 | static inline | 165 | static void b43_bus_ssb_write32(struct b43_bus_dev *dev, u16 offset, u32 value) |
167 | void 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 | } |
171 | static inline | 169 | static void b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer, |
172 | void 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 | } |
177 | static inline | 174 | static |
178 | void b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer, | 175 | void 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 | { |