diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-09-29 12:58:25 +0200 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-10-02 22:12:31 +0530 |
commit | 21cc1fb5af06e468c74ae601bac719d306523f9c (patch) | |
tree | fac02cdb9e906574f1a326c2cab0aec5c4b1dba3 /include/linux/mtd/onenand.h | |
parent | e9f62db64b55fa3451731781cc3b1d3bdd271d54 (diff) |
mtd: mtdpart: add a generic mtdparts-like parser
The current parser is very specific to U-Boot mtdparts implementation.
It does not use MTD structures like mtd_info and mtd_partition. Copy
and adapt the current parser in drivers/mtd/mtd-uclass.c (to not break
the current use of mtdparts.c itself) and write some kind of a wrapper
around the current implementation to allow other commands to benefit
from this parsing in a user-friendly way.
This new function will allocate an mtd_partition array for each
successful call. This array must be freed after use by the caller.
The given 'mtdparts' buffer pointer will be moved forward to the next
MTD device (if any, it will point towards a '\0' character otherwise).
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Jagan Teki <jagan@openedev.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'include/linux/mtd/onenand.h')
0 files changed, 0 insertions, 0 deletions