diff options
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) { |