diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-10-19 13:09:25 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-11-28 11:01:32 +0000 |
commit | 1d1386e31ed47dcdd9b433b810b27a0f28928bc7 (patch) | |
tree | 882dc90f84974fbe0c9d63d399d11a9628a9fa20 /src/jtag/drivers/libusb_helper.h | |
parent | c6460ea36d7eeaf4a0fe4fb1a4c65bb21547afbe (diff) | |
download | riscv-openocd-1d1386e31ed47dcdd9b433b810b27a0f28928bc7.zip riscv-openocd-1d1386e31ed47dcdd9b433b810b27a0f28928bc7.tar.gz riscv-openocd-1d1386e31ed47dcdd9b433b810b27a0f28928bc7.tar.bz2 |
drivers: call adapter_get_required_serial() in jtag_libusb_open()
Now that adapter serial is handled independently from the adapter
drivers, move inside jtag_libusb_open() the call to
adapter_get_required_serial(), so every adapter that uses libusb
will automagically get USB serial support.
Extend the documentation to list the adapters involved.
Change-Id: I75b3482d38f8ed3418329f3106c5e8b689fd460b
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6663
Tested-by: jenkins
Diffstat (limited to 'src/jtag/drivers/libusb_helper.h')
-rw-r--r-- | src/jtag/drivers/libusb_helper.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/jtag/drivers/libusb_helper.h b/src/jtag/drivers/libusb_helper.h index 6087128..2ddb246 100644 --- a/src/jtag/drivers/libusb_helper.h +++ b/src/jtag/drivers/libusb_helper.h @@ -28,7 +28,6 @@ typedef char * (*adapter_get_alternate_serial_fn)(struct libusb_device_handle *d struct libusb_device_descriptor *dev_desc); int jtag_libusb_open(const uint16_t vids[], const uint16_t pids[], - const char *serial, struct libusb_device_handle **out, adapter_get_alternate_serial_fn adapter_get_alternate_serial); void jtag_libusb_close(struct libusb_device_handle *dev); |