Ezequiel Garcia 8471bb73ba mtd: Introduce mtd_block_isreserved()
In addition to mtd_block_isbad(), which checks if a block is bad or
reserved, it's needed to check if a block is reserved only (but not
bad). This commit adds an MTD interface for it, in a similar fashion to
mtd_block_isbad().

While here, fix mtd_block_isbad() so the out-of-bounds checking is done
before the callback check.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2014-07-08 18:38:16 -07:00
..
2013-08-05 20:48:49 +01:00
2013-11-06 23:32:59 -08:00
2014-07-08 18:38:16 -07:00
2014-01-20 11:55:23 -08:00
2014-07-08 18:38:16 -07:00
2014-05-28 00:05:23 -07:00
2013-04-05 13:02:40 +01:00
2013-04-05 13:02:33 +01:00
2012-11-15 15:37:50 +02:00
2014-04-18 16:40:08 -07:00