summaryrefslogtreecommitdiffstats
path: root/ft2232_spi.c
diff options
context:
space:
mode:
authorAlex Badea <vamposdecampos@gmail.com>2010-11-10 03:22:39 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-11-10 03:22:39 +0000
commitfe996d6115f40c6ca03a56871ffee7eae45b9f5a (patch)
tree7d0939e37c2027618eeb7813bd2c61a3b2dd10e8 /ft2232_spi.c
parent9bfd742356c11caec8df1703bd766ed04112fe07 (diff)
downloadflashrom-fe996d6115f40c6ca03a56871ffee7eae45b9f5a.zip
flashrom-fe996d6115f40c6ca03a56871ffee7eae45b9f5a.tar.gz
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 <vamposdecampos@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'ft2232_spi.c')
-rw-r--r--ft2232_spi.c2
1 files changed, 1 insertions, 1 deletions
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,
OpenPOWER on IntegriCloud