openocd/src/jtag
Paul Fertser 96549bf012 jtag/drivers/libusb0_common: fix FTBFS (libusb_device_descriptor error)
This struct and libusb_get_device_descriptor() method are not present
in libusb-0.1 API, so when libusb-1.0 is unavailable, this code breaks
the build. Fix by using the appropriate struct (which is apparently
filled automatically on device initialisation).

While at it, change return values for consistency with the callers.

Change-Id: I7d85ab9a70401a155a65122397008ae4d81382fe
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2252
Tested-by: jenkins
Reviewed-by: Austin Phillips <austin_phillips@hotmail.com>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-09-08 20:23:15 +00:00
..
aice jtag/aice/aice_usb: remove unused constants 2014-04-08 11:37:36 +00:00
drivers jtag/drivers/libusb0_common: fix FTBFS (libusb_device_descriptor error) 2014-09-08 20:23:15 +00:00
hla Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
minidriver Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
minidummy Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
zy1000 Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
adapter.c transport: Constify the transports vector 2014-06-28 09:33:31 +00:00
commands.c jtag: fix support for really long scans 2013-11-06 13:08:38 +00:00
commands.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
core.c Relax polling check if not in JTAG mode 2014-06-28 09:34:55 +00:00
driver.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
interface.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
interface.h transport: Constify the transports vector 2014-06-28 09:33:31 +00:00
interfaces.c jtag/drivers: add USB-Blaster II 2014-01-20 13:28:02 +00:00
interfaces.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
jtag.h Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
Makefile.am aice: add Andes AICE support 2013-06-05 19:27:23 +00:00
minidriver.h Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
startup.tcl Auto-select JTAG transport when appropriate 2014-06-28 09:35:38 +00:00
swd.h swd: Add frequency setting and special/switching sequences to the API 2014-06-28 09:33:12 +00:00
tcl.c jtag: always configure enabled tap parameter appropriately 2014-08-22 07:38:42 +00:00
tcl.h update files to correct FSF address 2013-06-05 19:52:42 +00:00