diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-06-10 10:18:28 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:10 -0400 |
commit | c7975330154af17aecc167b33ca866b6b3d98918 (patch) | |
tree | b9895816b3f9bd53758410754ad1b1061986a8dd /drivers/mtd/cmdlinepart.c | |
parent | f722013ee9fd24623df31dec9a91a6d02c3e2f2f (diff) |
mtd: abstract last MTD partition parser argument
Encapsulate last MTD partition parser argument into a separate
structure. Currently it holds only 'origin' field for RedBoot parser,
but will be extended in future to contain at least device_node for OF
devices.
Amended commentary to make kerneldoc happy
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
Diffstat (limited to 'drivers/mtd/cmdlinepart.c')
-rw-r--r-- | drivers/mtd/cmdlinepart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c index be0c121f2f1b..1b11f94695e9 100644 --- a/drivers/mtd/cmdlinepart.c +++ b/drivers/mtd/cmdlinepart.c | |||
@@ -313,8 +313,8 @@ static int mtdpart_setup_real(char *s) | |||
313 | * the first one in the chain if a NULL mtd_id is passed in. | 313 | * the first one in the chain if a NULL mtd_id is passed in. |
314 | */ | 314 | */ |
315 | static int parse_cmdline_partitions(struct mtd_info *master, | 315 | static int parse_cmdline_partitions(struct mtd_info *master, |
316 | struct mtd_partition **pparts, | 316 | struct mtd_partition **pparts, |
317 | unsigned long origin) | 317 | struct mtd_part_parser_data *data) |
318 | { | 318 | { |
319 | unsigned long offset; | 319 | unsigned long offset; |
320 | int i; | 320 | int i; |