@@ -67,6 +67,7 @@ struct mtd_info
* @subpage_size: sub-page size
* @oob_size: OOB size (zero if the device does not have OOB area)
* @region_cnt: count of additional erase regions
+ * @reginfo: erase regions information
* @writable: zero if the device is read-only
* @bb_allowed: non-zero if the MTD device may have bad eraseblocks
*/
@@ -85,6 +86,7 @@ struct mtd_dev_info
int subpage_size;
int oob_size;
int region_cnt;
+ struct region_info_user *reginfo;
unsigned int writable:1;
unsigned int bb_allowed:1;
};
This field will reflect the mtd->numeraseregions available in the kernel space. Signed-off-by: Marian Rotariu <marian_rotariu@mentor.com> --- include/libmtd.h | 2 ++ 1 file changed, 2 insertions(+)