From 2d575412e30f8fe6c8e8ff7cde2d911c2b8d5b74 Mon Sep 17 00:00:00 2001 From: hailfinger Date: Thu, 8 Jul 2010 10:13:37 +0000 Subject: 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 Acked-by: Michael Karcher git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1072 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- buspirate_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buspirate_spi.c') diff --git a/buspirate_spi.c b/buspirate_spi.c index 4dceca5..e0683ec 100644 --- a/buspirate_spi.c +++ b/buspirate_spi.c @@ -101,14 +101,14 @@ int buspirate_spi_init(void) char *speed = NULL; int spispeed = 0x7; - dev = extract_param(&programmer_param, "dev", ",:"); + dev = extract_programmer_param("dev"); if (!dev || !strlen(dev)) { msg_perr("No serial device given. Use flashrom -p " "buspirate_spi:dev=/dev/ttyUSB0\n"); return 1; } - speed = extract_param(&programmer_param, "spispeed", ",:"); + speed = extract_programmer_param("spispeed"); if (speed) { for (i = 0; spispeeds[i].name; i++) if (!strncasecmp(spispeeds[i].name, speed, -- cgit v1.2.1