android_kernel_motorola_sm6225/drivers/mtd
Artem Bityutskiy 7e1f0dc055 mtd: introduce mtd_erase interface
This patch is part of a patch-set which changes the MTD interface
from 'mtd->func()' form to 'mtd_func()' form. We need this because
we want to add common code to to all drivers in the mtd core level,
which is impossible with the current interface when MTD clients
call driver functions like 'read()' or 'write()' directly.

At this point we just introduce a new inline wrapper function, but
later some of them are expected to gain more code. E.g., the input
parameters check should be moved to the wrappers rather than be
duplicated at many drivers.

This particular patch introduced the 'mtd_erase()' interface. The
following patches add all the other interfaces one by one.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-01-09 18:25:11 +00:00
..
chips mtd: cfi: Allow per-mapping CFI device endianness 2012-01-09 18:06:13 +00:00
devices mtd: docg3: remove unused function 2012-01-09 18:18:51 +00:00
lpddr mtd: lpddr: drop unnecessary zeroing 2012-01-09 18:24:48 +00:00
maps mtd: lantiq-flash: drop iounmap for devm_ allocated data 2012-01-09 18:24:05 +00:00
nand mtd: txx9ndfmc: use devm_request_and_ioremap 2012-01-09 18:24:11 +00:00
onenand mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
tests mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
ubi mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
afs.c mtd: abstract last MTD partition parser argument 2011-09-11 15:02:10 +03:00
ar7part.c Merge git://git.infradead.org/mtd-2.6 2011-11-07 09:11:16 -08:00
bcm63xxpart.c mtd: bcm63xxpart: check the image tag's crc32 2012-01-09 18:23:32 +00:00
cmdlinepart.c Merge git://git.infradead.org/mtd-2.6 2011-11-07 09:11:16 -08:00
ftl.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
inftlcore.c mtd: utilize `mtd_is_*()' functions 2011-09-21 09:19:06 +03:00
inftlmount.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
Kconfig mtd: maps: bcm963xx-flash: make CFE partition parsing an mtd parser 2012-01-09 18:15:31 +00:00
Makefile mtd: maps: bcm963xx-flash: make CFE partition parsing an mtd parser 2012-01-09 18:15:31 +00:00
mtd_blkdevs.c mtd: mtd_blkdevs: don't increase 'open' count on error path 2012-01-09 18:04:01 +00:00
mtdblock.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
mtdblock_ro.c mtd: Add module.h to drivers users that were implicitly using it. 2011-10-31 19:31:12 -04:00
mtdchar.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
mtdconcat.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
mtdcore.c mtd: check parts pointer before using it 2011-09-11 15:02:18 +03:00
mtdcore.h mtd: hide parse_mtd_partitions 2011-09-11 15:02:13 +03:00
mtdoops.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
mtdpart.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
mtdsuper.c Merge git://git.infradead.org/mtd-2.6 2011-11-07 09:11:16 -08:00
mtdswap.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
nftlcore.c mtd: utilize `mtd_is_*()' functions 2011-09-21 09:19:06 +03:00
nftlmount.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
ofpart.c mtd: ofpart: add ofoldpart alias 2011-09-11 15:02:14 +03:00
redboot.c Merge git://git.infradead.org/mtd-2.6 2011-11-07 09:11:16 -08:00
rfd_ftl.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
sm_ftl.c mtd: introduce mtd_erase interface 2012-01-09 18:25:11 +00:00
sm_ftl.h mtd: sm_ftl: cosmetic, use bool when possible 2010-10-25 01:33:08 +01:00
ssfdc.c mtd: rename MTD_OOB_* to MTD_OPS_* 2011-09-11 15:28:59 +03:00