summaryrefslogtreecommitdiff
path: root/ft2232_spi.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-07-08 10:13:37 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-07-08 10:13:37 +0000
commit2d575412e30f8fe6c8e8ff7cde2d911c2b8d5b74 (patch)
treebea24b22c91729fd1054a4d285bc8f051e5a8f3b /ft2232_spi.c
parent3bd5d8c811c442704a4058434e6acc3d09ff0a13 (diff)
downloadflashrom-2d575412e30f8fe6c8e8ff7cde2d911c2b8d5b74.tar.gz
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. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1072 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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 0245c53..1dd2e0c 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':