mtd: partitions: add support for subpartitions
authorRafał Miłecki <rafal@milecki.pl>
Wed, 21 Jun 2017 06:26:45 +0000 (08:26 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 22 Jun 2017 20:13:08 +0000 (13:13 -0700)
commit97519dc52b44af054d7654776e78eaa211cf1842
treeed8365a65235e09c6c2a4bde14c9190d1b283977
parent0a9d72b69da6d8dae1abd7990c6c4c749846ef3e
mtd: partitions: add support for subpartitions

Some flash device partitions can be containers with extra subpartitions
(volumes). All callbacks are already capable of this additional level of
indirection.

This patch makes sure we always display subpartitions using a tree
structure and takes care of deleting subpartitions when parent gets
removed.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdpart.c