summaryrefslogtreecommitdiffstats
path: root/ft2232_spi.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-07-08 10:13:37 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-07-08 10:13:37 +0000
commit2b6dcb36c4121ed12fa2fb66f133365bd88f2456 (patch)
treebea24b22c91729fd1054a4d285bc8f051e5a8f3b /ft2232_spi.c
parent7af6cefa482d4ceadbd9b68d6db12ad9759c8b04 (diff)
downloadflashrom-2b6dcb36c4121ed12fa2fb66f133365bd88f2456.tar.gz
flashrom-2b6dcb36c4121ed12fa2fb66f133365bd88f2456.tar.bz2
flashrom-2b6dcb36c4121ed12fa2fb66f133365bd88f2456.zip
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>
Diffstat (limited to 'ft2232_spi.c')
-rw-r--r--ft2232_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 0245c532e..1dd2e0ccf 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -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':