1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23: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:
Carl-Daniel Hailfinger
2010-07-08 10:13:37 +00:00
parent 7af6cefa48
commit 2b6dcb36c4
10 changed files with 20 additions and 15 deletions

View File

@ -80,7 +80,7 @@ int ft2232_spi_init(void)
enum ftdi_interface ft2232_interface = INTERFACE_B;
char *arg;
arg = extract_param(&programmer_param, "type", ",:");
arg = extract_programmer_param("type");
if (arg) {
if (!strcasecmp(arg, "2232H"))
ft2232_type = FTDI_FT2232H;
@ -93,7 +93,7 @@ int ft2232_spi_init(void)
}
}
free(arg);
arg = extract_param(&programmer_param, "port", ",:");
arg = extract_programmer_param("port");
if (arg) {
switch (toupper(*arg)) {
case 'A':