linux/drivers/mtd/devices
Artem Bityutskiy bcb1d23871 mtd: move zero length verification to MTD API functions
In many places in drivers we verify for the zero length, but this is very
inconsistent across drivers. This is obviously the right thing to do, though.
This patch moves the check to the MTD API functions instead and removes a lot
of duplication.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-03-27 00:32:19 +01:00
..
Kconfig mtd: ST SPEAr: Add SMI driver for serial NOR flash 2012-03-27 00:14:16 +01:00
Makefile mtd: ST SPEAr: Add SMI driver for serial NOR flash 2012-03-27 00:14:16 +01:00
block2mtd.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
doc2000.c mtd: remove retlen zeroing duplication 2012-03-27 00:29:34 +01:00
doc2001.c mtd: remove retlen zeroing duplication 2012-03-27 00:29:34 +01:00
doc2001plus.c mtd: remove retlen zeroing duplication 2012-03-27 00:29:34 +01:00
docecc.c mtd: spelling, capitalization, uniformity 2011-09-11 15:02:13 +03:00
docg3.c mtd: docg3: initialize writebufsize 2012-03-27 00:22:57 +01:00
docg3.h mtd: docg3: fixes and cleanups 2012-01-09 18:13:05 +00:00
docprobe.c mtd: docprobe: use kzalloc instead 2012-01-09 18:25:51 +00:00
lart.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
m25p80.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
ms02-nv.c mtd: do not duplicate length and offset checks in drivers 2012-03-27 00:28:18 +01:00
ms02-nv.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
mtd_dataflash.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
mtdram.c mtd: harmonize mtd_point interface implementation 2012-03-27 00:32:11 +01:00
phram.c mtd: harmonize mtd_point interface implementation 2012-03-27 00:32:11 +01:00
pmc551.c mtd: harmonize mtd_point interface implementation 2012-03-27 00:32:11 +01:00
slram.c mtd: harmonize mtd_point interface implementation 2012-03-27 00:32:11 +01:00
spear_smi.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
sst25l.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00