libusb: don't use typedef's
commit11d918d9c1f7cb637a525a92521b747d2d4c840f
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 14 Apr 2021 21:44:57 +0000 (14 23:44 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 1 May 2021 12:35:51 +0000 (1 13:35 +0100)
treea0cdb810fcbf24cfe740e01ddb1d879a1a450446
parenta60979b069b5964639d87ce268a37078c0fb57bb
libusb: don't use typedef's

Libusb defines both the struct and a typedef to the struct using
the same struct name. It's then possible to use either 'struct x'
and 'x'. E.g.:
typedef struct libusb_device libusb_device;

OpenOCD is not consistent and uses a mix of 'struct x' and 'x'.

To make OpenOCD code uniform, stick at project's coding style and
use 'struct x' in place of the typedef'd name.

Change-Id: I901458b680e42830d3f371e47997157f91b7f675
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6165
Tested-by: jenkins
Reviewed-by: Jonathan McDowell <noodles-openocd@earth.li>
Reviewed-by: Marc Schink <dev@zapb.de>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
12 files changed:
src/jtag/aice/aice_usb.c
src/jtag/drivers/cmsis_dap_usb_bulk.c
src/jtag/drivers/libusb_helper.c
src/jtag/drivers/libusb_helper.h
src/jtag/drivers/mpsse.c
src/jtag/drivers/rlink.c
src/jtag/drivers/stlink_usb.c
src/jtag/drivers/ulink.c
src/jtag/drivers/versaloon/versaloon.c
src/jtag/drivers/versaloon/versaloon.h
src/jtag/drivers/vsllink.c
src/jtag/drivers/xds110.c