diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2008-12-03 03:19:04 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-05 09:35:56 -0500 |
commit | 4c7f0bc266ccccfb0ca397405af13ee3d9e0f6b2 (patch) | |
tree | 4fda80914123923db1fd97a594ff0f568cadac39 /drivers/net | |
parent | 74415edb042ef9f3b1291f978763687f35aadbb3 (diff) |
generic swap(): ath9k: rename swap() to swap_array()
In preparation for the introduction of a generic swap() macro.
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Cc: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Cc: Senthil Balasubramanian <senthilkumar@atheros.com>
Cc: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath9k/regd.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/regd.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/regd.c b/drivers/net/wireless/ath9k/regd.c index 42ce1d9abad0..64043e99facf 100644 --- a/drivers/net/wireless/ath9k/regd.c +++ b/drivers/net/wireless/ath9k/regd.c | |||
@@ -42,7 +42,7 @@ ath9k_regd_sort(void *a, u32 n, u32 size, ath_hal_cmp_t *cmp) | |||
42 | u8 *u = t - size; | 42 | u8 *u = t - size; |
43 | if (cmp(u, t) <= 0) | 43 | if (cmp(u, t) <= 0) |
44 | break; | 44 | break; |
45 | swap(u, t, size); | 45 | swap_array(u, t, size); |
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
diff --git a/drivers/net/wireless/ath9k/regd.h b/drivers/net/wireless/ath9k/regd.h index 0ecd344fbd98..512d990aa7ea 100644 --- a/drivers/net/wireless/ath9k/regd.h +++ b/drivers/net/wireless/ath9k/regd.h | |||
@@ -125,7 +125,7 @@ | |||
125 | 125 | ||
126 | #define CHAN_FLAGS (CHANNEL_ALL|CHANNEL_HALF|CHANNEL_QUARTER) | 126 | #define CHAN_FLAGS (CHANNEL_ALL|CHANNEL_HALF|CHANNEL_QUARTER) |
127 | 127 | ||
128 | #define swap(_a, _b, _size) { \ | 128 | #define swap_array(_a, _b, _size) { \ |
129 | u8 *s = _b; \ | 129 | u8 *s = _b; \ |
130 | int i = _size; \ | 130 | int i = _size; \ |
131 | do { \ | 131 | do { \ |