summaryrefslogtreecommitdiff
path: root/drivers/block/systemace.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.com>2013-04-09 21:11:56 +0000
committerTom Rini <trini@ti.com>2013-05-01 16:24:02 -0400
commit0472fbfd3250d1a33d3de78afdcbf24f78ac026b (patch)
tree1d5f822e2d95f800121368bba96a185ae6f7b0fb /drivers/block/systemace.c
parentbc8d98713f10582f4e35b9208f1b967c6a9f9953 (diff)
part/dev_desc: Add log2 of blocksize to block_dev_desc data struct
log2 of the device block size serves as the shift value used to calculate the block number to read in file systems when implementing avaiable block sizes. It is needed quite often in file systems thus it is pre-calculated and stored in the block device descriptor. Signed-off-by: Egbert Eich <eich@suse.com>
Diffstat (limited to 'drivers/block/systemace.c')
-rw-r--r--drivers/block/systemace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/systemace.c b/drivers/block/systemace.c
index bf29cbbb7a..b08715f7c4 100644
--- a/drivers/block/systemace.c
+++ b/drivers/block/systemace.c
@@ -127,6 +127,7 @@ block_dev_desc_t *systemace_get_dev(int dev)
systemace_dev.part_type = PART_TYPE_UNKNOWN;
systemace_dev.type = DEV_TYPE_HARDDISK;
systemace_dev.blksz = 512;
+ systemace_dev.log2blksz = LOG2(systemace_dev.blksz);
systemace_dev.removable = 1;
systemace_dev.block_read = systemace_read;