]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: mtdparts: introduce mtd_get_device_size
authorRichard Genoud <richard.genoud@gmail.com>
Tue, 10 Jul 2012 16:23:40 +0000 (18:23 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Sep 2012 06:38:58 +0000 (09:38 +0300)
commit62082e56cbb807cb325a8968f35dbd922432eb48
tree7774c4a45743e1b7bbefb1c7363c9af3185a51c5
parent5dee4674c8dd4398f4806aae153888319c7e2be9
mtd: mtdparts: introduce mtd_get_device_size

'mtd_get_device_size()' returns the size of the whole MTD device, that is the
mtd_info master size. This will be used by UBI to calculate the maximum number
of bad blocks (MBB) on a MTD device.

Artem: amended the patch a bit.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/mtdpart.c
include/linux/mtd/partitions.h