From b1b459ce0eb5e36848014195de3741e6794dc4ce Mon Sep 17 00:00:00 2001 From: Alex Badea Date: Wed, 10 Nov 2010 03:22:39 +0000 Subject: Use device-specific vendor ID in ftdi_usb_open() call 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. Corresponding to flashrom svn r1230. Signed-off-by: Alex Badea Acked-by: Carl-Daniel Hailfinger --- ft2232_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ft2232_spi.c b/ft2232_spi.c index 86f3b4a..91eb9e4 100644 --- a/ft2232_spi.c +++ b/ft2232_spi.c @@ -179,7 +179,7 @@ int ft2232_spi_init(void) 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, -- cgit v1.1