mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
Unify programmer parameter extraction
Make programmer_param static by converting all users to extract_programmer_param. Programmer parameters can no longer be separated with a colon, they have to be separated with a comma. Corresponding to flashrom svn r1072. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
@ -89,7 +89,7 @@ enum programmer programmer =
|
||||
;
|
||||
#endif
|
||||
|
||||
char *programmer_param = NULL;
|
||||
static char *programmer_param = NULL;
|
||||
|
||||
/* Supported buses for the current programmer. */
|
||||
enum chipbustype buses_supported;
|
||||
@ -641,6 +641,11 @@ char *extract_param(char **haystack, char *needle, char *delim)
|
||||
return opt;
|
||||
}
|
||||
|
||||
char *extract_programmer_param(char *param_name)
|
||||
{
|
||||
return extract_param(&programmer_param, param_name, ",");
|
||||
}
|
||||
|
||||
/* start is an offset to the base address of the flash chip */
|
||||
int check_erased_range(struct flashchip *flash, int start, int len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user