mtd: Update internal API to support 64-bit device size
MTD internal API presently uses 32-bit values to represent device
size. This patch updates them to 64-bits but leaves the external API
unchanged.

In general, changing from 32-bit to 64-bit values cause little
or no changes to the majority of the code with the following
exceptions:
  - printk message formats;
  - division and modulus of 64-bit values (mtd_div_by_wb,
    mtd_div_by_eb may be used in some of such cases).

Was tested on phyFLEX i.MX6.

Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com>
Signed-off-by: Grigory Milev <g.milev@sam-solutions.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent cf1b29a commit 1ee640765a71a7b9ee2cf4ebad22ed5961aef8db
@Dmitry Lavnikevich Dmitry Lavnikevich authored on 10 Mar 2014
Sascha Hauer committed on 12 Mar 2014
Showing 10 changed files
View
commands/nandtest.c
View
commands/partition.c
View
drivers/mtd/core.c
View
drivers/mtd/devices/m25p80.c
View
drivers/mtd/devices/mtd_dataflash.c
View
drivers/mtd/mtdoob.c
View
drivers/mtd/mtdraw.c
View
include/linux/mtd/mtd-abi.h
View
include/linux/mtd/mtd.h
View
lib/libmtd.c