[flashrom] [commit] r1230 - trunk

repository service svn at flashrom.org
Wed Nov 10 04:22:40 CET 2010


Author: hailfinger
Date: Wed Nov 10 04:22:39 2010
New Revision: 1230
URL: http://flashrom.org/trac/flashrom/changeset/1230

Log:
ft2232_spi ftdi_usb_open() is called with the constant FTDI_VID vendor
ID. Fix it by using the programmer-type-dependent ft2232_vid variable,
to allow programmers with other vendor IDs.

Signed-off-by: Alex Badea <vamposdecampos at gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Modified:
   trunk/ft2232_spi.c

Modified: trunk/ft2232_spi.c
==============================================================================
--- trunk/ft2232_spi.c	Wed Nov 10 04:18:41 2010	(r1229)
+++ trunk/ft2232_spi.c	Wed Nov 10 04:22:39 2010	(r1230)
@@ -179,7 +179,7 @@
 		return EXIT_FAILURE; // TODO
 	}
 
-	f = ftdi_usb_open(ftdic, FTDI_VID, ft2232_type);
+	f = ftdi_usb_open(ftdic, ft2232_vid, ft2232_type);
 
 	if (f < 0 && f != -5) {
 		msg_perr("Unable to open FTDI device: %d (%s)\n", f,




More information about the flashrom mailing list