Skip to content

Commit

Permalink
generic swap(): ath9k: rename swap() to swap_array()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Fengguang authored and John W. Linville committed Dec 5, 2008
1 parent 74415ed commit 4c7f0bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath9k/regd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath9k/regd.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

#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 { \
Expand Down

0 comments on commit 4c7f0bc

Please sign in to comment.