generic swap(): ath9k: rename swap() to swap_array()
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 3 Dec 2008 08:19:04 +0000 (00:19 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 5 Dec 2008 14:35:56 +0000 (09:35 -0500)
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>
drivers/net/wireless/ath9k/regd.c
drivers/net/wireless/ath9k/regd.h

index 42ce1d9abad083df844879d4a9b5d1f92905079b..64043e99facff0faef1838b01ca214c2d2f7c9b8 100644 (file)
@@ -42,7 +42,7 @@ ath9k_regd_sort(void *a, u32 n, u32 size, ath_hal_cmp_t *cmp)
                        u8 *u = t - size;
                        if (cmp(u, t) <= 0)
                                break;
-                       swap(u, t, size);
+                       swap_array(u, t, size);
                }
 }
 
index 0ecd344fbd988e3592624b90bb86ced5a32e30ae..512d990aa7ea352e44452158cb04742689add545 100644 (file)
 
 #define CHAN_FLAGS      (CHANNEL_ALL|CHANNEL_HALF|CHANNEL_QUARTER)
 
-#define swap(_a, _b, _size) {                   \
+#define swap_array(_a, _b, _size) {                   \
        u8 *s = _b;                       \
        int i = _size;                          \
        do {                                    \