Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: cmdlinepart: update /proc/mtd comment

/proc/mtd doesn't contain the mtd-id of the device, but the part name from the
command line. This corrects what I believe is an obsolete comment from commit
a0ee24a03b1c06813c814b9f70946c8984752f01.

Signed-off-by: Christopher Cordahi <christophercordahi@nanometrics.ca>
Cc: Philip Rakity <prakity@yahoo.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

authored by

Christopher Cordahi and committed by
Artem Bityutskiy
bd6ce5ef ea8b8e27

+1 -1
+1 -1
drivers/mtd/cmdlinepart.c
··· 22 22 * 23 23 * mtdparts=<mtddef>[;<mtddef] 24 24 * <mtddef> := <mtd-id>:<partdef>[,<partdef>] 25 - * where <mtd-id> is the name from the "cat /proc/mtd" command 26 25 * <partdef> := <size>[@<offset>][<name>][ro][lk] 27 26 * <mtd-id> := unique name used in mapping driver/device (mtd->name) 28 27 * <size> := standard linux memsize OR "-" to denote all remaining space ··· 31 32 * if omitted the part will immediately follow the previous part 32 33 * or 0 if the first part 33 34 * <name> := '(' NAME ')' 35 + * NAME will appear in /proc/mtd 34 36 * 35 37 * <size> and <offset> can be specified such that the parts are out of order 36 38 * in physical memory and may even overlap.