Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

b43: checkpatch.pl cleanups

Keeping this one simple.

Changing a few "foo * bar" to "foo *bar"

Removes 22 checkpatch.pl errors, with no introduced warnings.

Signed-off-by: John Daiker <daikerjohn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

John Daiker and committed by
John W. Linville
99da185a ddcb5c78

+39 -39
+2 -2
drivers/net/wireless/b43/debugfs.c
··· 51 51 }; 52 52 53 53 static inline 54 - struct b43_dfs_file * fops_to_dfs_file(struct b43_wldev *dev, 55 - const struct b43_debugfs_fops *dfops) 54 + struct b43_dfs_file *fops_to_dfs_file(struct b43_wldev *dev, 55 + const struct b43_debugfs_fops *dfops) 56 56 { 57 57 void *p; 58 58
+2 -2
drivers/net/wireless/b43/dma.c
··· 1260 1260 } 1261 1261 1262 1262 /* Static mapping of mac80211's queues (priorities) to b43 DMA rings. */ 1263 - static struct b43_dmaring * select_ring_by_priority(struct b43_wldev *dev, 1264 - u8 queue_prio) 1263 + static struct b43_dmaring *select_ring_by_priority(struct b43_wldev *dev, 1264 + u8 queue_prio) 1265 1265 { 1266 1266 struct b43_dmaring *ring; 1267 1267
+9 -9
drivers/net/wireless/b43/lo.c
··· 36 36 #include <linux/sched.h> 37 37 38 38 39 - static struct b43_lo_calib * b43_find_lo_calib(struct b43_txpower_lo_control *lo, 40 - const struct b43_bbatt *bbatt, 39 + static struct b43_lo_calib *b43_find_lo_calib(struct b43_txpower_lo_control *lo, 40 + const struct b43_bbatt *bbatt, 41 41 const struct b43_rfatt *rfatt) 42 42 { 43 43 struct b43_lo_calib *c; ··· 138 138 * "pad_mix_gain" is the PAD Mixer Gain. 139 139 */ 140 140 static u16 lo_txctl_register_table(struct b43_wldev *dev, 141 - u16 * value, u16 * pad_mix_gain) 141 + u16 *value, u16 *pad_mix_gain) 142 142 { 143 143 struct b43_phy *phy = &dev->phy; 144 144 u16 reg, v, padmix; ··· 731 731 } 732 732 733 733 static 734 - struct b43_lo_calib * b43_calibrate_lo_setting(struct b43_wldev *dev, 735 - const struct b43_bbatt *bbatt, 736 - const struct b43_rfatt *rfatt) 734 + struct b43_lo_calib *b43_calibrate_lo_setting(struct b43_wldev *dev, 735 + const struct b43_bbatt *bbatt, 736 + const struct b43_rfatt *rfatt) 737 737 { 738 738 struct b43_phy *phy = &dev->phy; 739 739 struct b43_phy_g *gphy = phy->g; ··· 797 797 /* Get a calibrated LO setting for the given attenuation values. 798 798 * Might return a NULL pointer under OOM! */ 799 799 static 800 - struct b43_lo_calib * b43_get_calib_lo_settings(struct b43_wldev *dev, 801 - const struct b43_bbatt *bbatt, 802 - const struct b43_rfatt *rfatt) 800 + struct b43_lo_calib *b43_get_calib_lo_settings(struct b43_wldev *dev, 801 + const struct b43_bbatt *bbatt, 802 + const struct b43_rfatt *rfatt) 803 803 { 804 804 struct b43_txpower_lo_control *lo = dev->phy.g->lo_control; 805 805 struct b43_lo_calib *c;
+13 -13
drivers/net/wireless/b43/main.c
··· 512 512 } 513 513 514 514 /* Read HostFlags */ 515 - u64 b43_hf_read(struct b43_wldev * dev) 515 + u64 b43_hf_read(struct b43_wldev *dev) 516 516 { 517 517 u64 ret; 518 518 ··· 600 600 } 601 601 602 602 static 603 - void b43_macfilter_set(struct b43_wldev *dev, u16 offset, const u8 * mac) 603 + void b43_macfilter_set(struct b43_wldev *dev, u16 offset, const u8 *mac) 604 604 { 605 605 static const u8 zero_addr[ETH_ALEN] = { 0 }; 606 606 u16 data; ··· 790 790 } 791 791 792 792 static void key_write(struct b43_wldev *dev, 793 - u8 index, u8 algorithm, const u8 * key) 793 + u8 index, u8 algorithm, const u8 *key) 794 794 { 795 795 unsigned int i; 796 796 u32 offset; ··· 812 812 } 813 813 } 814 814 815 - static void keymac_write(struct b43_wldev *dev, u8 index, const u8 * addr) 815 + static void keymac_write(struct b43_wldev *dev, u8 index, const u8 *addr) 816 816 { 817 817 u32 addrtmp[2] = { 0, 0, }; 818 818 u8 per_sta_keys_start = 8; ··· 862 862 863 863 static void do_key_write(struct b43_wldev *dev, 864 864 u8 index, u8 algorithm, 865 - const u8 * key, size_t key_len, const u8 * mac_addr) 865 + const u8 *key, size_t key_len, const u8 *mac_addr) 866 866 { 867 867 u8 buf[B43_SEC_KEYSIZE] = { 0, }; 868 868 u8 per_sta_keys_start = 8; ··· 886 886 887 887 static int b43_key_write(struct b43_wldev *dev, 888 888 int index, u8 algorithm, 889 - const u8 * key, size_t key_len, 890 - const u8 * mac_addr, 889 + const u8 *key, size_t key_len, 890 + const u8 *mac_addr, 891 891 struct ieee80211_key_conf *keyconf) 892 892 { 893 893 int i; ··· 1286 1286 } 1287 1287 1288 1288 static void b43_write_template_common(struct b43_wldev *dev, 1289 - const u8 * data, u16 size, 1289 + const u8 *data, u16 size, 1290 1290 u16 ram_offset, 1291 1291 u16 shm_size_offset, u8 rate) 1292 1292 { ··· 1476 1476 * 2) Patching duration field 1477 1477 * 3) Stripping TIM 1478 1478 */ 1479 - static const u8 * b43_generate_probe_resp(struct b43_wldev *dev, 1480 - u16 *dest_size, 1481 - struct ieee80211_rate *rate) 1479 + static const u8 *b43_generate_probe_resp(struct b43_wldev *dev, 1480 + u16 *dest_size, 1481 + struct ieee80211_rate *rate) 1482 1482 { 1483 1483 const u8 *src_data; 1484 1484 u8 *dest_data; ··· 2980 2980 b43_clear_keys(dev); 2981 2981 } 2982 2982 2983 - static int b43_rng_read(struct hwrng *rng, u32 * data) 2983 + static int b43_rng_read(struct hwrng *rng, u32 *data) 2984 2984 { 2985 2985 struct b43_wl *wl = (struct b43_wl *)rng->priv; 2986 2986 unsigned long flags; ··· 3311 3311 msleep(1); 3312 3312 } 3313 3313 3314 - static const char * band_to_string(enum ieee80211_band band) 3314 + static const char *band_to_string(enum ieee80211_band band) 3315 3315 { 3316 3316 switch (band) { 3317 3317 case IEEE80211_BAND_5GHZ:
+4 -4
drivers/net/wireless/b43/phy_g.c
··· 767 767 * interference mitigation code. 768 768 * It is save to restore values in random order. 769 769 */ 770 - static void _stack_save(u32 * _stackptr, size_t * stackidx, 770 + static void _stack_save(u32 *_stackptr, size_t *stackidx, 771 771 u8 id, u16 offset, u16 value) 772 772 { 773 773 u32 *stackptr = &(_stackptr[*stackidx]); ··· 781 781 B43_WARN_ON(*stackidx >= B43_INTERFSTACK_SIZE); 782 782 } 783 783 784 - static u16 _stack_restore(u32 * stackptr, u8 id, u16 offset) 784 + static u16 _stack_restore(u32 *stackptr, u8 id, u16 offset) 785 785 { 786 786 size_t i; 787 787 ··· 2350 2350 return 0; 2351 2351 } 2352 2352 2353 - u8 * b43_generate_dyn_tssi2dbm_tab(struct b43_wldev *dev, 2354 - s16 pab0, s16 pab1, s16 pab2) 2353 + u8 *b43_generate_dyn_tssi2dbm_tab(struct b43_wldev *dev, 2354 + s16 pab0, s16 pab1, s16 pab2) 2355 2355 { 2356 2356 unsigned int i; 2357 2357 u8 *tab;
+8 -8
drivers/net/wireless/b43/pio.c
··· 55 55 } 56 56 57 57 static 58 - struct b43_pio_txqueue * parse_cookie(struct b43_wldev *dev, 59 - u16 cookie, 58 + struct b43_pio_txqueue *parse_cookie(struct b43_wldev *dev, 59 + u16 cookie, 60 60 struct b43_pio_txpacket **pack) 61 61 { 62 62 struct b43_pio *pio = &dev->pio; ··· 134 134 return 8; 135 135 } 136 136 137 - static struct b43_pio_txqueue * b43_setup_pioqueue_tx(struct b43_wldev *dev, 138 - unsigned int index) 137 + static struct b43_pio_txqueue *b43_setup_pioqueue_tx(struct b43_wldev *dev, 138 + unsigned int index) 139 139 { 140 140 struct b43_pio_txqueue *q; 141 141 struct b43_pio_txpacket *p; ··· 171 171 return q; 172 172 } 173 173 174 - static struct b43_pio_rxqueue * b43_setup_pioqueue_rx(struct b43_wldev *dev, 175 - unsigned int index) 174 + static struct b43_pio_rxqueue *b43_setup_pioqueue_rx(struct b43_wldev *dev, 175 + unsigned int index) 176 176 { 177 177 struct b43_pio_rxqueue *q; 178 178 ··· 308 308 } 309 309 310 310 /* Static mapping of mac80211's queues (priorities) to b43 PIO queues. */ 311 - static struct b43_pio_txqueue * select_queue_by_priority(struct b43_wldev *dev, 312 - u8 queue_prio) 311 + static struct b43_pio_txqueue *select_queue_by_priority(struct b43_wldev *dev, 312 + u8 queue_prio) 313 313 { 314 314 struct b43_pio_txqueue *q; 315 315
+1 -1
drivers/net/wireless/b43/rfkill.c
··· 113 113 return err; 114 114 } 115 115 116 - char * b43_rfkill_led_name(struct b43_wldev *dev) 116 + char *b43_rfkill_led_name(struct b43_wldev *dev) 117 117 { 118 118 struct b43_rfkill *rfk = &(dev->wl->rfkill); 119 119