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 <[email protected]> Acked-by: Carl-Daniel Hailfinger <[email protected]> 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, _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
