2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 23:23:55 +08:00
linux-next/drivers/mtd/onenand
Artem Bityutskiy 5def48982b mtd: do not duplicate length and offset checks in drivers
We already verify that offset and length are within the MTD device size
in the MTD API functions. Let's remove the duplicated checks in drivers.
This patch only affects the following API's:

'mtd_erase()'
'mtd_point()'
'mtd_unpoint()'
'mtd_get_unmapped_area()'
'mtd_read()'
'mtd_write()'
'mtd_panic_write()'
'mtd_lock()'
'mtd_unlock()'
'mtd_is_locked()'
'mtd_block_isbad()'
'mtd_block_markbad()'

This patch adds a bit of noise by removing too sparse empty lines, but this is
not too bad.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-03-27 00:28:18 +01:00
..
generic.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
Kconfig mtd: onenand: convert to mtd_device_register() 2011-05-25 02:21:19 +01:00
Makefile mtd: add Samsung SoC OneNAND driver 2010-05-14 01:51:20 +01:00
omap2.c Merge git://git.infradead.org/mtd-2.6 2011-11-07 09:11:16 -08:00
onenand_base.c mtd: do not duplicate length and offset checks in drivers 2012-03-27 00:28:18 +01:00
onenand_bbt.c Merge git://git.infradead.org/mtd-2.6 2011-11-07 09:11:16 -08:00
onenand_sim.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
samsung.c mtd: onenand: samsung: add missing iounmap 2012-03-27 00:11:20 +01:00