]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: introduce function max_bad_blocks
authorJeff Westfahl <jeff.westfahl@ni.com>
Tue, 10 Jan 2017 19:30:17 +0000 (13:30 -0600)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 8 Feb 2017 21:53:52 +0000 (13:53 -0800)
commit6080ef6e7c0a0592cbcca11200d879faf65e27d4
tree509d57287040d86a9fe5459bd501ec0cbe6da66f
parent7da0fffb3a4cb76a4869bf12acb750a4f9e2f2c1
mtd: introduce function max_bad_blocks

If implemented, 'max_bad_blocks' returns the maximum number of bad
blocks to reserve for a MTD. An implementation for NAND is coming soon.

Signed-off-by: Jeff Westfahl <jeff.westfahl@ni.com>
Signed-off-by: Zach Brown <zach.brown@ni.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electron.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdpart.c
include/linux/mtd/mtd.h