summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/blktrans.h
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@openedhand.com>2006-10-27 09:09:33 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-11-28 22:27:47 +0000
commit191876729901d0c8dab8a331f9a1e4b73a56457b (patch)
tree1e25eb24ac84c09b0300e32eea55b33adc567015 /include/linux/mtd/blktrans.h
parent90afffc8bd79d130b58acd18f972ce4e00b8e20f (diff)
downloadlinux-191876729901d0c8dab8a331f9a1e4b73a56457b.tar.gz
linux-191876729901d0c8dab8a331f9a1e4b73a56457b.tar.bz2
linux-191876729901d0c8dab8a331f9a1e4b73a56457b.zip
[MTD] Allow variable block sizes in mtd_blkdevs
Currently, mtd_blkdevs enforces a block size of 512, even if the drivers can seemingly request a different size. This patch fixes mtd_blkdevs so block sizes other than 512 work correctly. Signed-off-by: Richard Purdie <rpurdie@openedhand.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/mtd/blktrans.h')
-rw-r--r--include/linux/mtd/blktrans.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mtd/blktrans.h b/include/linux/mtd/blktrans.h
index 72fc68c5ee96..9a6e2f953cba 100644
--- a/include/linux/mtd/blktrans.h
+++ b/include/linux/mtd/blktrans.h
@@ -24,7 +24,6 @@ struct mtd_blktrans_dev {
struct mtd_info *mtd;
struct mutex lock;
int devnum;
- int blksize;
unsigned long size;
int readonly;
void *blkcore_priv; /* gendisk in 2.5, devfs_handle in 2.4 */
@@ -36,6 +35,8 @@ struct mtd_blktrans_ops {
char *name;
int major;
int part_bits;
+ int blksize;
+ int blkshift;
/* Access functions */
int (*readsect)(struct mtd_blktrans_dev *dev,