diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-10-07 19:42:54 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-11-28 10:55:49 +0000 |
commit | 248161cbf47af9f7fc8c00b5efa79a1ff8e65848 (patch) | |
tree | edea7cc086b97fb56777c2dd8a416e8478e6b53c /src/jtag/drivers/cmsis_dap_usb_hid.c | |
parent | a3b69dee622066d3a2b70c32775818d82b5ffb54 (diff) | |
download | riscv-openocd-248161cbf47af9f7fc8c00b5efa79a1ff8e65848.zip riscv-openocd-248161cbf47af9f7fc8c00b5efa79a1ff8e65848.tar.gz riscv-openocd-248161cbf47af9f7fc8c00b5efa79a1ff8e65848.tar.bz2 |
jtag/cmsis_dap: switch to command 'adapter serial'
The driver cmsis_dap defines the command 'cmsis_dap_serial' to
specify the serial string of the adapter.
Remove and deprecate the driver command, and use 'adapter serial'.
Change-Id: I88e2d4de360a6c6f23529bb18494962a267250df
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6649
Tested-by: jenkins
Diffstat (limited to 'src/jtag/drivers/cmsis_dap_usb_hid.c')
-rw-r--r-- | src/jtag/drivers/cmsis_dap_usb_hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/drivers/cmsis_dap_usb_hid.c b/src/jtag/drivers/cmsis_dap_usb_hid.c index 5bb8ee8..912ba39 100644 --- a/src/jtag/drivers/cmsis_dap_usb_hid.c +++ b/src/jtag/drivers/cmsis_dap_usb_hid.c @@ -48,7 +48,7 @@ struct cmsis_dap_backend_data { static void cmsis_dap_hid_close(struct cmsis_dap *dap); static int cmsis_dap_hid_alloc(struct cmsis_dap *dap, unsigned int pkt_sz); -static int cmsis_dap_hid_open(struct cmsis_dap *dap, uint16_t vids[], uint16_t pids[], char *serial) +static int cmsis_dap_hid_open(struct cmsis_dap *dap, uint16_t vids[], uint16_t pids[], const char *serial) { hid_device *dev = NULL; int i; |