提交 55a999a0 编写于 作者: R Rafał Miłecki 提交者: Boris Brezillon

mtd: update documentation of mtd_device_parse_register()

In the commit 2c77c57d ("mtd: move code adding master MTD out of
mtd_add_device_partitions()") behavior of mtd_device_parse_register()
has very slightly changed. It's a pretty non-significant order change
to match updated function behavior.
Signed-off-by: NRafał Miłecki <rafal@milecki.pl>
Reviewed-by: NRichard Weinberger <richard@nod.at>
Signed-off-by: NBoris Brezillon <boris.brezillon@bootlin.com>
上级 9e7eb9c9
...@@ -673,14 +673,13 @@ static void mtd_set_dev_defaults(struct mtd_info *mtd) ...@@ -673,14 +673,13 @@ static void mtd_set_dev_defaults(struct mtd_info *mtd)
* 'parse_mtd_partitions()') and MTD device and partitions registering. It * 'parse_mtd_partitions()') and MTD device and partitions registering. It
* basically follows the most common pattern found in many MTD drivers: * basically follows the most common pattern found in many MTD drivers:
* *
* * It first tries to probe partitions on MTD device @mtd using parsers * * If the MTD_PARTITIONED_MASTER option is set, then the device as a whole is
* registered first.
* * Then It tries to probe partitions on MTD device @mtd using parsers
* specified in @types (if @types is %NULL, then the default list of parsers * specified in @types (if @types is %NULL, then the default list of parsers
* is used, see 'parse_mtd_partitions()' for more information). If none are * is used, see 'parse_mtd_partitions()' for more information). If none are
* found this functions tries to fallback to information specified in * found this functions tries to fallback to information specified in
* @parts/@nr_parts. * @parts/@nr_parts.
* * If any partitioning info was found, this function registers the found
* partitions. If the MTD_PARTITIONED_MASTER option is set, then the device
* as a whole is registered first.
* * If no partitions were found this function just registers the MTD device * * If no partitions were found this function just registers the MTD device
* @mtd and exits. * @mtd and exits.
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册