Skip to content
Commit ff4afa8a authored by Miquel Raynal's avatar Miquel Raynal Committed by Jagan Teki
Browse files

mtd: uboot: search for an equivalent MTD name with the mtdids



Using an MTD device (resp. partition) name in mtdparts is simple and
straightforward. However, for a long time already, another name was
given in mtdparts to indicate a device (resp. partition) so the
"mtdids" environment variable was created to do the match.

Let's create a function that, from an MTD device (resp. partition)
name, search for the equivalent name in the "mtdparts" environment
variable thanks to the "mtdids" string.

Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent 21cc1fb5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment