Submitter | Alex Badea |
---|---|
Date | 2010-10-16 12:20:53 |
Message ID | <1287231657-16981-2-git-send-email-vamposdecampos@gmail.com> |
Download | mbox | patch |
Permalink | /patch/2124/ |
State | Accepted |
Commit | r1230 |
Headers | show |
Comments
On 16.10.2010 14:20, Alex Badea wrote: > 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@gmail.com> > Thanks for your patch. Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> and committed in r1230. Regards, Carl-Daniel
Patch
diff --git a/ft2232_spi.c b/ft2232_spi.c index a2ea2a8..37fa231 100644 --- a/ft2232_spi.c +++ b/ft2232_spi.c @@ -173,7 +173,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,
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@gmail.com> --- ft2232_spi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)