diff options
author | Josh Boyer <jwboyer@gmail.com> | 2006-05-16 05:39:27 -0500 |
---|---|---|
committer | Josh Boyer <jwboyer@gmail.com> | 2006-05-16 05:39:27 -0500 |
commit | 7349dc6de42b696619d7632fb6a016f848d63bca (patch) | |
tree | d98e517e7e1c5ec3906d642c4bedf7c3fdebd364 /rfddump.c | |
parent | ba3d8f61a6ce84437bc8e92d30b541336fb6b47b (diff) |
Consolidate the swab macros into one location
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
Diffstat (limited to 'rfddump.c')
-rw-r--r-- | rfddump.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,7 +25,7 @@ #include <mtd/mtd-user.h> #include <linux/types.h> -#include <asm/byteorder.h> +#include <mtd_swab.h> /* next is an array of mapping for each corresponding sector */ #define RFD_MAGIC 0x9193 @@ -137,7 +137,7 @@ int build_block_map(struct rfd *rfd, int fd, int block) return -1; } - if (__le16_to_cpu(rfd->header[0]) != RFD_MAGIC) { + if (le16_to_cpu(rfd->header[0]) != RFD_MAGIC) { if (rfd->verbose) printf("Block #%02d: Magic missing\n", block); @@ -146,7 +146,7 @@ int build_block_map(struct rfd *rfd, int fd, int block) sectors = 0; for (i=0; i<rfd->data_sectors; i++) { - __u16 entry = __le16_to_cpu(rfd->header[i + HEADER_MAP_OFFSET]); + __u16 entry = le16_to_cpu(rfd->header[i + HEADER_MAP_OFFSET]); if (entry == SECTOR_FREE || entry == SECTOR_DELETED) continue; |