Commit c80a7b26 authored by Harvey Harrison's avatar Harvey Harrison Committed by David Woodhouse

[MTD] remove private wrapper of endian helpers in rfd_ftl.c

Base versions handle constant folding just fine.
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 0bc4382a
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#include <asm/types.h> #include <asm/types.h>
#define const_cpu_to_le16 __constant_cpu_to_le16
static int block_size = 0; static int block_size = 0;
module_param(block_size, int, 0); module_param(block_size, int, 0);
MODULE_PARM_DESC(block_size, "Block size to use by RFD, defaults to erase unit size"); MODULE_PARM_DESC(block_size, "Block size to use by RFD, defaults to erase unit size");
...@@ -298,7 +296,7 @@ static void erase_callback(struct erase_info *erase) ...@@ -298,7 +296,7 @@ static void erase_callback(struct erase_info *erase)
return; return;
} }
magic = const_cpu_to_le16(RFD_MAGIC); magic = cpu_to_le16(RFD_MAGIC);
part->blocks[i].state = BLOCK_ERASED; part->blocks[i].state = BLOCK_ERASED;
part->blocks[i].free_sectors = part->data_sectors_per_block; part->blocks[i].free_sectors = part->data_sectors_per_block;
...@@ -588,7 +586,7 @@ static int mark_sector_deleted(struct partition *part, u_long old_addr) ...@@ -588,7 +586,7 @@ static int mark_sector_deleted(struct partition *part, u_long old_addr)
int block, offset, rc; int block, offset, rc;
u_long addr; u_long addr;
size_t retlen; size_t retlen;
u16 del = const_cpu_to_le16(SECTOR_DELETED); u16 del = cpu_to_le16(SECTOR_DELETED);
block = old_addr / part->block_size; block = old_addr / part->block_size;
offset = (old_addr % part->block_size) / SECTOR_SIZE - offset = (old_addr % part->block_size) / SECTOR_SIZE -
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment