diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2019-02-05 17:35:05 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-06-17 08:03:12 +0000 |
commit | b04fef91c100d815265bc1948e61a62f284c42ef (patch) | |
tree | 9446fe01e60f38fde4dd777602a1e8dab2cce8cd /flash.h | |
parent | ee13d0c8fa365455002b109ded7f94f990be8347 (diff) | |
download | flashrom-b04fef91c100d815265bc1948e61a62f284c42ef.tar.gz flashrom-b04fef91c100d815265bc1948e61a62f284c42ef.tar.bz2 flashrom-b04fef91c100d815265bc1948e61a62f284c42ef.zip |
layout.c: Don't use global variables for included regions
This removes the use of global variables for included region arguments
and also uses a linked list to store the arguments.
Change-Id: I6534cc58b8dcc6256c2730c809286d8083669a6c
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/31247
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -391,10 +391,10 @@ __attribute__((format(printf, 2, 3))); #define msg_cspew(...) print(FLASHROM_MSG_SPEW, __VA_ARGS__) /* chip debug spew */ /* layout.c */ -int register_include_arg(char *name); +int register_include_arg(struct layout_include_args **args, char *name); int read_romlayout(const char *name); int normalize_romentries(const struct flashctx *flash); -void layout_cleanup(void); +void layout_cleanup(struct layout_include_args **args); /* spi.c */ struct spi_command { |