mtd: parser: cmdline: Support MTD names containing one or more colons
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 29 Apr 2020 16:53:47 +0000 (09:53 -0700)
committerRichard Weinberger <richard@nod.at>
Fri, 5 Jun 2020 08:16:14 +0000 (10:16 +0200)
commiteb13fa0227417e84aecc3bd9c029d376e33474d3
tree61c3a16346cf8ab89975f9175bbd99a39d576372
parent9029537c93b6f7347cf213d4e3b5c935a4d07ac8
mtd: parser: cmdline: Support MTD names containing one or more colons

Looks like some drivers define MTD names with a colon in it, thus
making mtdpart= parsing impossible. Let's fix the parser to gracefully
handle that case: the last ':' in a partition definition sequence is
considered instead of the first one.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Ron Minnich <rminnich@google.com>
Tested-by: Ron Minnich <rminnich@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/parsers/cmdlinepart.c